3
Jak utworzyć warunkową definicję typu w C ++
Próbuję zrobić coś takiego: #include <iostream> #include <random> typedef int Integer; #if sizeof(Integer) <= 4 typedef std::mt19937 Engine; #else typedef std::mt19937_64 Engine; #endif int main() { std::cout << sizeof(Integer) << std::endl; return 0; } ale otrzymuję ten błąd: error: missing binary operator before token "(" Jak mogę poprawnie utworzyć warunkową …