template <typename T> struct Templated {
static const int x = T::X;
};
struct Normal : Templated<Normal> {
static constexpr const inline int X = 0;
};
Error: ‘X’ is not a member of Normal
1
template <typename T> struct Templated {
static const int x = T::X;
};
struct Normal : Templated<Normal> {
static constexpr const inline int X = 0;
};
Error: ‘X’ is not a member of Normal
1
Filed under: Kiến thức lập trình - @ 17:05