This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Problem with libstdc++-v3.0.96 and #include <functional>
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: libstdc++ at gcc dot gnu dot org
- Cc: c dot pokam at worldonline dot de
- Date: Mon, 04 Feb 2002 09:24:12 +0100
- Subject: Re: Problem with libstdc++-v3.0.96 and #include <functional>
- References: <1012802536.10039.14.camel@localhost.localdomain>
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.