The workaround you've discovered for issues in Studio involving the initialization of variables and C++ compilation modes is quite insightful. Here's a breakdown of your findings:
Workaround Summary:
- Removal of
constexpr Specifier:
- By eliminating the
constexpr specifier from the kek variable and the Test::operator+() function, potential issues related to constexpr initialization can be mitigated.
[]Compile in C++14 Mode:
- Switching to C++14 mode can be an effective workaround, as guaranteed copy elision is enabled only in C++17 and later versions. This change could help address any compatibility or functionality issues arising from the initialization process...