|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2007-10-15 15:45:02
on Fri Oct 12 2007, Michael Marcin <mmarcin-AT-method-solutions.com> wrote:
> David Abrahams wrote:
>> on Thu Oct 11 2007, Michael Marcin <mmarcin-AT-method-solutions.com> wrote:
>>
>>> Okay I think I've got a solution but I it is a bit ugly. Is there a
>>> cleaner solution?
>>
>> Looks OK to me. What do you find ugly about it?
>>
>
> Thanks for looking.
>
> I guess the only concrete thing I can point to is having to declare my own
>
> template< typename T >
> struct wrap
> {
> };
>
> since this seems like its probably pretty common I figured there might
> be one in mpl somewhere.
You can use mpl::identity for this. There's also boost/type.hpp
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
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