Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-05-26 21:46:51

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

> "Alexander Nasonov" <alnsn-boost_at_[hidden]> wrote
>> One idea came to my mind. In order to avoid ODR violations, can we switch
>> from definitions to declarations?
>> Every BOOST_TYPEOF_REGISTER_TYPE macro could add overloaded reg_entry
>> function which encodes a given type T:
>> template<class T>
>> char (& reg_entry(identity<T>) ) [CODE1][CODE2] ... [CODE50];
> Not sure I understand this... Can you ellaborate?

The function returns a reference to a multidimensional array, where
each numerical element that you were putting in the mpl::vector is
encoded as a separate dimension of the array.

Dave Abrahams
Boost Consulting

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