I wrote a simple macro for printing a message on a line. But I get a strange error by the compiler. Can someone help plz.
...... In copy constructor `std::basic_ios <char, std::char_trait s<char> >::basic_ios(co nst std::basic_ios< char, std::char_trait s<char> >&)':
...../ios_base.h:738: error: `std::ios_base: :ios_base(const std::ios_base&) ' is private
..../main.cpp:186: error: within this context
Code:
#define Notify(comm)\
({cout << (comm) << endl;})
.
.
.
const char* zText;
zText = something;
Notify(zText);
.
.
...../ios_base.h:738: error: `std::ios_base: :ios_base(const std::ios_base&) ' is private
..../main.cpp:186: error: within this context
Comment