You can avoid the double constructor problem by using a rust-style constructor pattern:
class Foo { static int from(Foo *that) { that = new Foo(); that.x = 3; return Status::SUCCESS; } int x; }
You can avoid the double constructor problem by using a rust-style constructor pattern:
class Foo { static int from(Foo *that) { that = new Foo(); that.x = 3; return Status::SUCCESS; } int x; }