-
Builder for C++ Resource Class
This is a useful pattern people should use in cpp One problem with cpp classes is the method for communicating failures in a constructor. Imagine a class that acquire a resource. Such as: What if the acquisition fails? Will the user know? An acquisition internal to the constructor failing would leave the object in a…