2 ms·
In C++ you would have a protected constructor and related friend utility class to do the parsing, returning any error code, and constructing the thing, populati
by apaprocki 8mo ago
In C++ you would have a protected constructor and related friend utility class to do the parsing, returning any error code, and constructing the thing, populating an optional, shared_ptr, whatever… don’t make constructors fallible.