CPlusPlusHowToProgram11e icon indicating copy to clipboard operation
CPlusPlusHowToProgram11e copied to clipboard

fig19_18 compile error

Open fancyerii opened this issue 7 months ago • 0 comments

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()))

fancyerii avatar Apr 01 '25 02:04 fancyerii