Question on compiling error using manipulator gcc 3.2.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

i was compiling the following piece of code receiving an error on the comparison between f and endl:

#include <iostream>

using namespace std;

int main( int argc, char **argv )
{

 typedef ostream& (*__omanip)(ostream&);

 __omanip f = NULL;

 f = &endl;

 if (f == endl) cout << "Test Ok" << endl;

}


Does anyone help me to understand what is the error?

Thanx



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux