This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]