Ask a questionAsk a question
 

QuestionDelegating constructors

  • Monday, October 26, 2009 2:57 PMBjornTornqvist Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Will Delegating constructors in native C++ be supported in RTM version of Studio 2010.
    Doesn't seem to work in Beta 2.

    class test
    {
    public:
        test (int a) : m(a) {}
        test() : test(0) {}

        int m;
    };

    Error 1 error C2614: 'test' : illegal member initialization: 'test' is not a base or member c:\viewrelease\base\ams\aimts\smart\SMART.h 92 1 SMART