Subject: Re: [boost] Compile-time autoincrementable values
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-10 12:26:23
Agustín K-ballo Bergé wrote:
> I'm working on a small library to safely work with options made of flags
> combinations. I'm currently looking for a way to automatically generate
> contiguous indices, pretty much as an enum does.
> I was able to achieve this in a very impractical way, which I fear may
> be based on a compiler bug or an implementation-defined issue. I do not
> have access to the standard, and I will appreciate if someone with more
> experience than I could look at the code to confirm my fears. My doubts
> on standard conformance are mainly
> - compile time flags: the sizeof a function call expression changes as
> new overloads (better matches) are added.
Undefined behavior. (188.8.131.52)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk