Меня удивляет, почему T::X недоступен в структуре Templated ?
Код: Выделить всё
template struct Templated {
static const int x = T::X;
};
struct Normal : Templated {
static constexpr const inline int X = 0;
};
'X' не является членом Normal.
< /blockquote>
Подробнее здесь: https://stackoverflow.com/questions/792 ... m-a-crtp-c
Мобильная версия