CPlusPlusHowToProgram11e
CPlusPlusHowToProgram11e copied to clipboard
fig19_18 compile error
std::cout.flags() returns std::ios_base::fmtflags, it can't be formatted by std::format. we need cast it.
std::format("flags value: {}\n", static_cast<unsigned long>(std::cout.flags()))