Original Post
Let's say you have a class with no default constructor: class A { public: A( int ID ); //Some other stuff }; Then you try to contain it in another class: class B { private: A m_myA; //this won't compile }; Is there a solution to this without specifying a default constructor in class A?