« Return to Thread: detect if a type has a size_t member

detect if a type has a size_t member

by hm567 :: Rate this Message:

Reply to Author | View in Thread

Hello

template <typename T>
struct S {
   // how to detect T has a member static const size_t value ?
   // if T has value, define member of S,  m1 of type T1, otherwise m2 of
type T2
};

Regards,

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

 « Return to Thread: detect if a type has a size_t member