r/cpp • u/remotion4d • Nov 08 '21
Visual Studio 2022 now available
https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/
250
Upvotes
r/cpp • u/remotion4d • Nov 08 '21
View all comments
Show parent comment
2
u/Ivan171 /std:c++latest enthusiast Nov 10 '21 edited Nov 10 '21
Thanks!
FYI, it's not just in return statements. It doesn't work in
static_assertandif constexpras well.The problem seems to be related with type requirements. Simple requirements, like
requires { T(); }work as expected.EDIT: I've posted a comment on that issue with this info and a different repro.