Bitcoin Forum
December 05, 2016, 02:40:37 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bind problems with c++ 0x  (Read 1019 times)
dkaparis
Jr. Member
*
Offline Offline

Activity: 53


View Profile
October 09, 2010, 01:25:48 PM
 #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.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480948837
Hero Member
*
Offline Offline

Posts: 1480948837

View Profile Personal Message (Offline)

Ignore
1480948837
Reply with quote  #2

1480948837
Report to moderator
1480948837
Hero Member
*
Offline Offline

Posts: 1480948837

View Profile Personal Message (Offline)

Ignore
1480948837
Reply with quote  #2

1480948837
Report to moderator
1480948837
Hero Member
*
Offline Offline

Posts: 1480948837

View Profile Personal Message (Offline)

Ignore
1480948837
Reply with quote  #2

1480948837
Report to moderator
LZ
Staff
Legendary
*
Offline Offline

Activity: 1456


Satoshi everywhere!


View Profile WWW
October 17, 2010, 01:51:51 AM
 #2

Fixed in SVN revision 164.

"Never invest unless you can afford to lose your entire investment." © S3052
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!