A
andreyvul
I have a template function like this:
std::vector<std:air<Square<T>, Triangle<T> > > *
recarrow(T a, T b, int n) {
/* ... */
}
template <class T>
struct Square {
/* ... */
};
template <class T>
struct Triangle {
/* ... */
};
Now, g++ has problems recursively creating the std::vector from
Square<T>.
Are recursive templates part of C++98 (or even C++0x) or is g++ just
non-compliant?
std::vector<std:air<Square<T>, Triangle<T> > > *
recarrow(T a, T b, int n) {
/* ... */
}
template <class T>
struct Square {
/* ... */
};
template <class T>
struct Triangle {
/* ... */
};
Now, g++ has problems recursively creating the std::vector from
Square<T>.
Are recursive templates part of C++98 (or even C++0x) or is g++ just
non-compliant?