|
Boost Users : |
From: Terje Slettebų (tslettebo_at_[hidden])
Date: 2003-06-21 03:00:06
>From: "Howard Hinnant" <yg-boost-users_at_[hidden]>
> Might
> be nice if the docs demonstrate its use with member template
> constructors (as opposed to just namespace scope functions).
And conversion functions, perhaps:
template<class T>
class test
{
public:
operator typename enable_if<
boost::is_arithmetic<T>::value,
T
>::type() { return T(); }
};
Assuming this is valid C++. :)
Regards,
Terje
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net