Author

Topic: bind problems with c++ 0x (Read 1250 times)

LZ
legendary
Activity: 1722
Merit: 1072
P2P Cryptocurrency
October 16, 2010, 09:51:51 PM
#2
Fixed in SVN revision 164.
newbie
Activity: 53
Merit: 0
October 09, 2010, 09:25:48 AM
#1
The unqualified bind references in main.cpp and util.cpp are ambiguous for newer compilers that implement the upcoming ISO standard: there is a collision between boost::bind and std::(tr1::)::bind. This breaks the build under, e.g. VC++ 2010.

I've qualified the offending references and fixed the build here, but this is precisely the reason why using-directives in header files are widely considered a bad practice. Better to do away with the using-directives in headers.h and either qualify all references, or judiciously use typedefs and/or using-declarations throughout the sources. If Satoshi gives a green light for this, I'd make another patch along these lines.
Jump to: