Delegating to a Contained PartsList

Morten.Gulbrandsen f1000mhz@yahoo.de
Fri Feb 11 20:03:00 GMT 2005


Please help

the attached code is buggy,

It is from an Introductory C++  tutorial,

According to what I have learned,

Delegation  is supported in languages like Python  and managed C++  dot 
net . 


Some  programmers told me that Managed C++  could handle delegation,

Please tell,   
    is this  object oriented delegation ?


I use  gcc  version 3.3.2


best Regards

Morten Gulbrandsen


===

4eList1605_UNIX.cpp:
At global scope:

4eList1605_UNIX.cpp:275:
error:
 ISO C++ forbids declaration of `operator+' with    no type


4eList1605_UNIX.cpp:
In member function `void PartsCatalog::ShowAll()':

4eList1605_UNIX.cpp:276:
error:

no matching function for call to `PartsList::
   Iterate(<unknown type>)'

4eList1605_UNIX.cpp:210:
error:
candidates are:
void PartsList::Iterate(void   (Part::*)() const) const



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4eList1605_UNIX.cpp
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20050211/acd14f31/attachment.ksh>


More information about the Gcc-help mailing list