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
class MyClass {
constexpr {
int val = 0;
-> [val] class { int getFirst() { return val; } }
++val;
-> [val] class { int getSecond() { return val; } }
}
};
to produce:
int MyClass::getFirst() { return 0; }
int MyClass::getSecond() { return 1; }
However both functions generate the same code: return MyClass::val;.
The text was updated successfully, but these errors were encountered:
I'd expect the following code:
to produce:
However both functions generate the same code:
return MyClass::val;
.The text was updated successfully, but these errors were encountered: