Problem with libstdc++-v3.0.96 and #include <functional>

Paolo Carlini pcarlini@unitus.it
Mon Feb 4 00:23:00 GMT 2002


POKAM Christian wrote:

>When compiling this small file (MemFun.cpp) with the latest
>libstdc++v3.0.96, I get this error : 
>MemFun.cpp:29: `compose1' undeclared (first use this function)
>
>Is compose1 not part of <functional>?
>

My fault ;-)
Seriously, between 3.0.95 and 3.0.96 we have moved all the *extensions* 
to the standard (compose1 is an historical SGI extension) to the 
separate namespace __gnu_cxx. Therefore, now, if you want to use them, 
you have to include <ext/functional> and then prefix compose1 with 
__gnu_cxx::compose1 (or your choice of using declarations).

Cheers,
Paolo.




More information about the Libstdc++ mailing list