Is there a Type2Type in boost ?
Hi everyone, I've looked around and failed to find the Type2Type template, detailed by Andrei Alexandrescu in a CUJ article (http://cuj.com/experts/1810/alexandr.htm?topic=experts), in boost. While the implementation is trivial: template<typename Type> struct Type2Type { typedef Type original_type; }; I'd rather have it in a well known library. Has it been replaced by something else ? Baptiste.
On Tuesday 17 September 2002 04:03 pm, Baptiste Lepilleur wrote:
Hi everyone, I've looked around and failed to find the Type2Type template, detailed by Andrei Alexandrescu in a CUJ article (http://cuj.com/experts/1810/alexandr.htm?topic=experts), in boost.
[snip]
I'd rather have it in a well known library. Has it been replaced by something else ?
Baptiste.
In some future version of Boost (probably 1.30.0), there will be boost::mpl::identity, but for now I don't believe Boost has a (public) equivalent. Doug
participants (2)
-
Baptiste Lepilleur
-
Douglas Gregor