Boost logo

Boost :

Subject: Re: [boost] [1.39.0][Signals2] Release branch test failures
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-04-13 16:47:33


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 13 April 2009, Peter Dimov wrote:
> There is no test for this. You need to verify that bind.hpp still works
> with precompiled headers when included in more than one translation unit.

Oh I see. No, it doesn't work in that case, I get errors like:

main.o:(.bss+0x8): multiple definition of `(anonymous namespace)::_1'
a.o:(.bss+0x8): first defined here
collect2: ld returned 1 exit status

However, using the definitions of the placeholders provided for MSVC:

static boost::arg<1> _1;

does work for gcc 4.0.1, for all cases: the bind tests, multiple translation
units with a precompiled header, and forwarding of the placeholder as a const
reference.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknjpOUACgkQ5vihyNWuA4Wa7wCglMaW6B1AsggUKdToT7GfqPZS
aBQAnjbdynw/ZrzPPGjIzbltF7NPfNu8
=wKeh
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk