VS2012 bind2nd is not a member of std

I had code already running on vs2008 and am trying to port it to vs2012. In this source code, I use the bind2nd function specified and using std :: bind2nd, and everything works fine. When I compile the same code with vs2012, I get an error that bind2nd is not a member of std. I checked msdn and it says that it is part of a "functional" library. When I look for it in my mailbox, I found out that it is not there, but in xfunctional, which is included in the functional, when rc_invoked is not defined. My first thought was that I defined rc_invoked, but I proved that it is not. So, following the inclusion chain, this bind2nd should be part of std, and my code should not fail, but it is. I'm running out of ideas, so any thought would be welcome.

Greetings

+3
source share
1 answer

I don't have MS VC ++ 2012, but you should check that perhaps bind2nd is defined in some namespace that is enclosed in std :: namespace or there is some manifest constant that needs to be defined in order to use bind2nd. Although it looks strange if you explicitly included the title <functional>in your program.

+1
source

All Articles