|
Boost : |
Subject: Re: [boost] [mpl] Using transform problem and solution
From: TONGARI (tongari95_at_[hidden])
Date: 2011-01-28 13:08:16
2011/1/28 Edward Diener <eldiener_at_[hidden]>
> So I try:
>>>
>>> template <class T>
>>> struct tself : T
>>> {
>>> };
>>>
>>> You did the right thing, and it would be more clear to define it as:
namespace intrinsic
{
template <class T>
struct type
{
typedef typename T::type type;
};
}
And used as:
typedef typename boost::mpl::transform<tvec, intrinsic::type<_1> >::type
ttrans;
which makes more sense to me.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk