Код: Выделить всё
// MSVC outputs "__int64"
std::cout
Это необычно, но я могу жить с ним. Помимо странного имени, тип ведет себя как 64-битный тип длиной длиной
Код: Выделить всё
// main.cpp
#include
#include
#include
template
< typename Int
, Int Max = std::numeric_limits::max()
>
struct foo {
static Int max() {
return Max;
}
static std::string name() {
return typeid(foo).name(); //
Подробнее здесь: [url]https://stackoverflow.com/questions/79655596/msvc-bug-stdtype-infoname-fails-when-non-type-template-parameter-has[/url]