Boost logo

Boost :

Subject: Re: [boost] [optional] generates unnessesary code for trivial types
From: Domagoj Saric (dsaritz_at_[hidden])
Date: 2012-02-09 14:01:08


"Domagoj Saric" je napisao u poruci interesnoj
grupi:jh0f5v$ljr$1_at_dough.gmane.org...
> So far this corresponds to your optional_with_traits approach except that
> I don't think that providing global configuration by
> overriding/specializing the default traits is the correct approach. As you
> noted, this can violate the ODR and AFAIK users are not used that changing
> a _type_ can violate the ODR and change the behaviour of another type.

Or I might just be babbling :) That's what traits are for (when per type as
opposed to per instantiation configuration is enough/desired)...

-- 
"What Huxley teaches is that in the age of advanced technology, spiritual
devastation is more likely to come from an enemy with a smiling face than
from one whose countenance exudes suspicion and hate."
Neil Postman 

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