<utility>
: pair::swap(const pair&)
interacts badly with __declspec(dllexport)
#3013
Labels
<utility>
: pair::swap(const pair&)
interacts badly with __declspec(dllexport)
#3013
This is a regression caused by merging #2687 in VS 2022 17.3 Preview 2:
Relevant code:
STL/stl/inc/utility
Lines 331 to 339 in 2263d93
WG21-N4910 [pairs.pair]/45.2 says:
So we aren't supposed to constrain this, but that interacts badly with
dllexport
which tries to instantiate everything.I suspect that we need the
template <int = 0>
workaround, also applied totuple
.Originally reported as DevCom-10109884 and internal VSO-1586226 / AB#1586226 .
The text was updated successfully, but these errors were encountered: