• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
constructor for 'E' must explicitly initialize the base class 'C' which does not have a default constructor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

constructor for 'E' must explicitly initialize the base class 'C' which does not have a default constructor


  • Subject: constructor for 'E' must explicitly initialize the base class 'C' which does not have a default constructor
  • From: Rick Mann <email@hidden>
  • Date: Fri, 18 Jan 2013 01:28:28 -0800

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: constructor for 'E' must explicitly initialize the base class 'C' which does not have a default constructor
      • From: John McCall <email@hidden>
    • Re: constructor for 'E' must explicitly initialize the base class 'C' which does not have a default constructor
      • From: Rick Mann <email@hidden>
  • Prev by Date: Re: NSTextfield focus in contextual menu
  • Next by Date: Re: constructor for 'E' must explicitly initialize the base class 'C' which does not have a default constructor
  • Previous by thread: Re: Issue with Core Data Mapping Model
  • Next by thread: Re: constructor for 'E' must explicitly initialize the base class 'C' which does not have a default constructor
  • Index(es):
    • Date
    • Thread