
5 Apr
2007
5 Apr
'07
6:25 p.m.
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