От: | koenjihyakkei | ||
Дата: | 21.03.18 15:41 | ||
Оценка: |
template<class T>
struct LT : public std::conditional<std::is_pointer<T>::value, A<T>, B<T>>::type
{
typedef typename std::conditional<std::is_pointer<T>::value, A<T>, B<T>>::type Base;
using Base::A;
using Base::B;
};
LT<int> a(12);
LT<int*> b(12);