Closed tap closed 8 years ago
There are numerous places where we did ugly stuff to make it possible to share code amongst constructors of a class. In C++11 we can use delegating constructors. e.g. class Foo { public: Foo(char x, int y) {} Foo(int y) : Foo('a', y) {} };
class Foo { public: Foo(char x, int y) {} Foo(int y) : Foo('a', y) {} };
Jamoma2
There are numerous places where we did ugly stuff to make it possible to share code amongst constructors of a class. In C++11 we can use delegating constructors. e.g.
class Foo { public: Foo(char x, int y) {} Foo(int y) : Foo('a', y) {} };