no matching function for call to 'SomeNamespace:: SomeClass:: SomeClass()
This can be a confusing error when "SomeClass()" is something you don't even think you're using. For instance given this class fragment:
and this constructor
You get this error:
no matching function for call to 'SyncorLibrary::Rectangle::Rectangle()'
Yet this constructor isn't calling a Rectangle constructor. Or is it? If you look at the private members you'll see an instance of m_entryRect that is a Rectangle. This error is telling you that since you didn't explicitly construct the Rectangle the compiler is trying to do it for you, and failing because there is no default constructor. If you put the explicit constructor inside the braces it's not going to help. The compiler will still try the default constructor when it comes to the end of the initializer list. You must add the constructor to the initializer list as shown below.