Код: Выделить всё
#include
using namespace std;
template
struct check_valid_type {
typedef void type;
};
struct foo;
template
struct bar {
static std::string get_x() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79507383/accessing-static-members-of-incomplete-type[/url]
Мобильная версия