Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-04-05 14:13:56


AMDG

Matthias Schabel <boost <at> schabel-family.org> writes:

>
> > http://thread.gmane.org/gmane.comp.lib.boost.devel/101946/focus=102070
> >
> > Would that be enough? Usage would look like:
> >
> > #include BOOST_UNITS_ORDINAL_GENERATOR()
> > struct my_unit : ordinal<BOOST_UNITS_NEXT_ORDINAL>
> > {
> > };
>
> I believe the problem with this is that it doesn't guarantee
> uniqueness across translation units;

Right. The best I have been able to think of so far
is (sizeof(__FILE__) * 1000000 + __LINE__). This is
a dead end unless I can find some way to extract
more information from __FILE__ than it's size at
compile time.

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