
27 May
2005
27 May
'05
2:46 a.m.
"Arkadiy Vertleyb" <vertleyb@hotmail.com> writes:
"Alexander Nasonov" <alnsn-boost@yandex.ru> 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 www.boost-consulting.com