Skip to content

Commit 5335551

Browse files
eisenwavetkoeppe
authored andcommitted
LWG4398 enable_nonlocking_formatter_optimization should be disabled for container adaptors
1 parent 4a64fd9 commit 5335551

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/containers.tex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15628,6 +15628,9 @@
1562815628
template<class charT, class T, @\libconcept{formattable}@<charT> Container>
1562915629
struct formatter<queue<T, Container>, charT>;
1563015630

15631+
template<class T, class Container>
15632+
constexpr bool enable_nonlocking_formatter_optimization<queue<T, Container>> = false;
15633+
1563115634
// \ref{priority.queue}, class template \tcode{priority_queue}
1563215635
template<class T, class Container = vector<T>,
1563315636
class Compare = less<typename Container::value_type>>
@@ -15642,6 +15645,10 @@
1564215645
// \ref{container.adaptors.format}, formatter specialization for \tcode{priority_queue}
1564315646
template<class charT, class T, @\libconcept{formattable}@<charT> Container, class Compare>
1564415647
struct formatter<priority_queue<T, Container, Compare>, charT>;
15648+
15649+
template<class T, class Container, class Compare>
15650+
constexpr bool
15651+
enable_nonlocking_formatter_optimization<priority_queue<T, Container, Compare>> = false;
1564515652
}
1564615653
\end{codeblock}
1564715654

@@ -16553,6 +16560,9 @@
1655316560
// \ref{container.adaptors.format}, formatter specialization for \tcode{stack}
1655416561
template<class charT, class T, @\libconcept{formattable}@<charT> Container>
1655516562
struct formatter<stack<T, Container>, charT>;
16563+
16564+
template<class T, class Container>
16565+
constexpr bool enable_nonlocking_formatter_optimization<stack<T, Container>> = false;
1655616566
}
1655716567
\end{codeblock}
1655816568

0 commit comments

Comments
 (0)