Template arguments qualification
Brought to you by:
mjspncr
Not sure whether it's a bug, or a result of fuzzy
parsing (but using the -e option doesn't help).
When static x is brought outside in cpp file, num
remains unqualified:
#hdr
#include <bitset>
#end
struct A
{
static const int num = 2;
static std::bitset<num> x;
};
Same goes to internal templates and secializations -
below, both some_t and X remain unqualified in the
generated files:
struct A
{
enum some_t {
X
};
template <some_t T>
struct B
{
void f() { }
};
template <>
struct B<X>
{
void f() { }
};
};