You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for true the output seems to include uninitialized memory (unprintable chars)
std::string_view constexpr formatString{"{:X<#2c}"};
autoconst s1{fmt::format(formatString, false)};
std::cout << s1 << std::endl; // prints "?X", where ? is an unprintable char
While applying massive random tests with generated format-specs, it turned out that the
c
presentation-type is allowed forbool
.godbolt
While writing for
false
the value is missinggodbolt
for
true
the output seems to include uninitialized memory (unprintable chars)godbolt
The text was updated successfully, but these errors were encountered: