
"Tobias Schwinger" <tschwinger@neoscientists.org> wrote
Arkadiy Vertleyb wrote:
template<class T, class Pred = std::less<T>, class A = std::allocator<T>
class set;
BOOST_TYPEOF_REGISTER_TEMPLATE(std::set, 1) // error BOOST_TYPEOF_REGISTER_TEMPLATE(std::set, 2) // error BOOST_TYPEOF_REGISTER_TEMPLATE(std::set, 3) // OK
Would it be possible to allow Typeof registration of partially specialized templates?
It seems that it would be very hard to achieve any decent syntax :-( For example, how would we handle commas _inside_ the parameters: REGISTER_SPEC((class T), (A<)(vector<T*, allocator<T*> >)) ^^^^^^^^^^ Breaking at every comma and placing every part into the sequence element just to pass in an unstructured string? Regards, Arkadiy