
21 Jun
2003
21 Jun
'03
3:06 a.m.
From: "Terje Slettebø" <tslettebo@chello.no>
From: "Howard Hinnant" <yg-boost-users@m.gmane.org>
Might be nice if the docs demonstrate its use with member template constructors (as opposed to just namespace scope functions).
And conversion functions, perhaps:
Granted, this doesn't appear use SFINAE, though, so maybe leave it out. On the other hand, does constructors? I get the same kind of error message for both constructors and conversion operators, on both Intel C++ and g++: template<class T> class test { public: test(const T &, typename enable_if< is_arithmetic<T>::value, T >::type * = 0) {} }; test a(1); // Ok test b(0 (int *) 0); // error: class "enable_if<false, int *>" has no member "type" Regards, Terje