Boost logo

Boost :

From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2008-07-13 08:22:57


On Sun, Jul 13, 2008 at 5:56 AM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> AMDG
>
> I've been trying to work out a way to cause
> an explicit error if configuration macros are defined
> differently in different translation units. I really wish
> I could cause a link error, but the best I've been able
> to come up with so far is a runtime error
>
<snip>
>
> Comments? Any better ideas?
>

I think that the next version of the gcc linker (known as GOLD) is
meant to (optionally?) catch ODR violations.
It should already be working, and this functionality already
available. I do not know if there any tar ball available yet or if you
have to fetch it from gcc svn.

HTH,

-- 
gpd

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