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
Functions such as those that accept an optional pointer-to-string to allow the called to be informed of errors are good candidates for this.
Either returning an empty std::string to indicate no error, or returning an std::optional, depending on if std::string's default constructor allocates on any known std implementations (It does in some older standard libs, but it's unclear if the standard has changed to prohibit that.)
The text was updated successfully, but these errors were encountered:
jonesmz
added
patch
Intended to be part of the patch series that makes up splinter
C++17
The last set of patches (Until C++20 is out)
labels
Feb 6, 2019
https://en.cppreference.com/w/cpp/language/structured_binding
Functions such as those that accept an optional pointer-to-string to allow the called to be informed of errors are good candidates for this.
Either returning an empty std::string to indicate no error, or returning an std::optional, depending on if std::string's default constructor allocates on any known std implementations (It does in some older standard libs, but it's unclear if the standard has changed to prohibit that.)
The text was updated successfully, but these errors were encountered: