|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-20 05:42:12
There are boost/boost/type.hpp and a similar template from
boost/python/detail/signatures.hpp. I wouldn't object to the idea of adding
the appropriate nested "type" typedef in type.hpp, though.
Aleksey has something similar to int2type in the MPL code.
I wonder why we haven't heard from him recently? Is everything OK, Aleksey?
-Dave
----- Original Message -----
From: "Andrei Alexandrescu" <andrewalex_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, November 20, 2001 3:23 AM
Subject: [boost] Quick q on simple type manipulation helpers
> Are there somewhere in boost equivalents for the templates below?
>
> template <int v>
> struct int2type
> {
> enum { value = v };
> };
>
> template <typename T>
> struct type2type
> {
> typedef T original_type;
> };
>
>
> Thanks,
>
> Andrei
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk