This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Calling a parameterless constructor from a parametered one


Fred Labrosse wrote:
   baseClass(T val)
      : theVal(val)
...
//    baseClass(T val)
//       : baseClass()

You've got two constructors with identical arguments list so them failed to overload.


---
Grigory


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]