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
Why returning a copy instead of a reference in the AsString method in struct Node ? String AsString() const { return std::get<String>(*this); }
It's a good practice to return references instead of copies.
Is your feature request related to a problem? Please describe.
I'm frustrated because I can't return const references with my configuration because it's causing a warning during compilation.
Describe the solution you'd like
Return references or const references.
The text was updated successfully, but these errors were encountered:
Description
Why returning a copy instead of a reference in the AsString method in struct Node ?
String AsString() const { return std::get<String>(*this); }
It's a good practice to return references instead of copies.
Is your feature request related to a problem? Please describe.
I'm frustrated because I can't return const references with my configuration because it's causing a warning during compilation.
Describe the solution you'd like
Return references or const references.
The text was updated successfully, but these errors were encountered: