3 ms·
Why not a factory function that returns std::optional<T> instead? Or better a variant of T or error code? The construct-then-init pattern is so annoying to dea
by kllrnohj 5y ago
Why not a factory function that returns std::optional<T> instead? Or better a variant of T or error code?
The construct-then-init pattern is so annoying to deal with.