Re: [C++-sig] How to add new constructor in a class

2010-06-21 Thread Matthew Scouten (TT)
Why not just subclass A as A_wrapper, add the necessary ctor to A_wrapper and expose that instead? -Original Message- From: cplusplus-sig-bounces+matthew.scouten=tradingtechnologies@python.org [mailto:cplusplus-sig-bounces+matthew.scouten=tradingtechnologies@py thon.org] On Behalf

Re: [C++-sig] How to add new constructor in a class

2010-06-19 Thread Roman Yakovenko
On Fri, Jun 18, 2010 at 1:58 PM, vishal bayskar wrote: > > In the below example I need to add a constructor A(). How to do that? > > class A{ > public: >        A(int); >        int getA(); > private: >        int a; > }; > If you can modify source code - than just do it, otherwise you will have