Bitcoin Forum
May 11, 2024, 02:28:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bind problems with c++ 0x  (Read 1254 times)
dkaparis (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


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.
1715394523
Hero Member
*
Offline Offline

Posts: 1715394523

View Profile Personal Message (Offline)

Ignore
1715394523
Reply with quote  #2

1715394523
Report to moderator
1715394523
Hero Member
*
Offline Offline

Posts: 1715394523

View Profile Personal Message (Offline)

Ignore
1715394523
Reply with quote  #2

1715394523
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715394523
Hero Member
*
Offline Offline

Posts: 1715394523

View Profile Personal Message (Offline)

Ignore
1715394523
Reply with quote  #2

1715394523
Report to moderator
1715394523
Hero Member
*
Offline Offline

Posts: 1715394523

View Profile Personal Message (Offline)

Ignore
1715394523
Reply with quote  #2

1715394523
Report to moderator
1715394523
Hero Member
*
Offline Offline

Posts: 1715394523

View Profile Personal Message (Offline)

Ignore
1715394523
Reply with quote  #2

1715394523
Report to moderator
LZ
Legendary
*
Offline Offline

Activity: 1722
Merit: 1072


P2P Cryptocurrency


View Profile
October 17, 2010, 01:51:51 AM
Last edit: January 22, 2018, 08:21:17 AM by LZ
 #2

Fixed in SVN revision 164.

My OpenPGP fingerprint: 5099EB8C0F2E68C63B4ECBB9A9D0993E04143362
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!