1

たとえば、変換テンプレートがあります

template<class T> struct Convert;
template<> struct Convert<T0> {typedef C0 Type;};
template<> struct Convert<T1> {typedef C1 Type;};
template<> struct Convert<T2> {typedef C2 Type;};

変換から、それは変換します

std::tuple<T0, T1, T2>; // version A

std::tuple<C0, C1, C2>; // version B

のように、一般的にそれを行う任意の方法

template<class tupleA, template<class> class Convert>
{
    typedef .... tupleB;
}

ここに答えがあります。ただし、VC2012 および VC++ Nov 2012 CTP ではコンパイルできません。VC++で動作させる方法はありますか? どうもありがとう!

4

0 に答える 0