A
Alex
Is there something wrong with requiring that a template argument has a nested class template? Why can I not do the following?
template<typename A, typename T> struct B
{
typedef typename A::AA<T> my_type;
};
VS2013 gives a compile error, even if B is not used at all.
What could I do instead?
Thanks, Alex
p.s. what I really want to do is the following:
template<typename A>
struct B
{
template<typename T>
struct BB : A::AA<T>
{};
};
template<typename A, typename T> struct B
{
typedef typename A::AA<T> my_type;
};
VS2013 gives a compile error, even if B is not used at all.
What could I do instead?
Thanks, Alex
p.s. what I really want to do is the following:
template<typename A>
struct B
{
template<typename T>
struct BB : A::AA<T>
{};
};