by thehardsphere · 9y ago · 0 comments
Or, rephrased: RAII is incredibly attractive, especially when exceptions are being used.
class Foo {
public:
static std::optional<Foo> create();
private:
Foo();
};This now means that you can't use any constructors, so how do you have Containers of foo?