H
Hicham Mouline
hi,
template <int T>
struct C {
typedef typename Traits<T>::E1 E1;
....
static void f();
};
template<>
void C<t1>::f()
{
// E1 is an enum { x1, x2... } in this case
// I wanted to use x1 x2 ... without scoping
// 1. unqualified x1 fails
// 2. E1::x1 is a non standard extension of msvc
// C<t1>::x1 is too verbose
}
is there a simpler way?
regards,
template <int T>
struct C {
typedef typename Traits<T>::E1 E1;
....
static void f();
};
template<>
void C<t1>::f()
{
// E1 is an enum { x1, x2... } in this case
// I wanted to use x1 x2 ... without scoping
// 1. unqualified x1 fails
// 2. E1::x1 is a non standard extension of msvc
// C<t1>::x1 is too verbose
}
is there a simpler way?
regards,