
9 Jul
2011
9 Jul
'11
12:22 a.m.
On 7/8/2011 8:17 PM, Nat Goodspeed wrote:
On Jul 8, 2011, at 6:17 AM, "John M. Dlugosz"
wrote: Can I use something like enable_if to tell if a class has a push_back or resize function?
Isn't that what the Type Traits Introspection library (currently under review) does?
Yes, precisely. As long as you know the signature of the member function or static member function for which you are looking, TTI can tell you at compile-time whether it exists or not. I encourage you to look at the library and give your comments as well as review the library.