|
Boost : |
From: Steven Watanabe (steven_at_[hidden])
Date: 2007-04-05 14:25:03
AMDG
Michael Fawcett <michael.fawcett <at> gmail.com> writes:
> I think that problem only arises if you actually define units in a
> source file instead of a header file. That shortcoming could just be
> documented, since it seems pretty rare that someone would define their
> custom unit in a source file instead of a header. If they really
> wanted to do that, they could still just use the current method.
>
> A quick test with VC8.0 just now shows that even __COUNTER__ has that
> problem when used in source files, but in headers Paul M.'s method
> works just fine.
>
Did you try multiple headers putting the #includes
in different orders?
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk