Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-05-10 15:37:43

"Arkadiy Vertleyb" <vertleyb_at_[hidden]> writes:

> "David Abrahams" <dave_at_[hidden]> wrote
>> Can't we do something with a unique name per header file using typeof?
>> #define BOOST_TYPEOF_HEADER boost_lambda_whatever
>> We could use that to define a uniquely-named type and/or synthesize
>> identifiers using __LINE__.
> I am afraid I don't understand this... How would we use this unique name?
> We can't convert it to a unique number, can we?

We can build a unique type and use that as one parameter to any
templates we need to instantiate in this file.

> Each type/template is registered in some particular (header/source) file at
> some particular line. The line gives us a unique id inside the file.
> What's missing is a unique integer that would identify the file.

Not everything has to be an integer ;-)

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at