|
|
|
|
|
by apaprocki
147 days 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. |
|