Okay, I've learned why it has to be this way, but it sure doesn't seem right to 
me, especially when it's evident from the code (in this case) which constructor 
to call.

-- 
Rick

On Jan 18, 2013, at 1:28 , Rick Mann <rm...@latencyzero.com> wrote:

> Can anyone explain this error? It sure looks to me like all the base class 
> constructors are being explicitly called.
> 
>       http://pastebin.com/cVMmgqCZ
> 
> 
> $ clang Test.cpp
> Test.cpp:40:5: error: constructor for 'E' must explicitly initialize the base 
> class 'C' which does not have a default constructor
>    E(const std::string& inS, B* inB)
>    ^
> Test.cpp:12:7: note: 'C' declared here
> class C
>      ^
> 1 error generated.
> 
> Thanks!
> 
> -- 
> Rick
> 
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com


-- 
Rick




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to