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
According to [vector.syn], formatter specialization for vector<bool>::reference should be available in <vector> header and (since it satisfies BasicFormatter) it should be also default constructible.
Repro:
#include<concepts>
#include<vector>using R = std::vector<bool>::reference;
using F = std::formatter<R>;
static_assert(std::default_initializable<F>);
Expected: correct compilation
Got: failed static assertion, because <format> include is missing
Compiler explorer: https://godbolt.org/z/sW8dM8cvd
The text was updated successfully, but these errors were encountered:
Fixing this is not trivial, <format> depends on <vector> and to fix it <vector> will depend on <format>. I've some refactoring patches to solve the cycle. However this may take a bit of time to land. After that fixing the bug should be trivial.
According to [vector.syn],
formatter
specialization forvector<bool>::reference
should be available in<vector>
header and (since it satisfies BasicFormatter) it should be also default constructible.Repro:
Expected: correct compilation
Got: failed static assertion, because
<format>
include is missingCompiler explorer: https://godbolt.org/z/sW8dM8cvd
The text was updated successfully, but these errors were encountered: