Hi Shachar,
Right again. I had a bug in a macro that defined the class name. In fact all of the methods bodies were implemented outside the class.
Thanks,

 - yba


On Tue, 13 Jul 2010, Shachar Shemesh wrote:

Date: Tue, 13 Jul 2010 12:46:41 +0300
From: Shachar Shemesh <[email protected]>
To: Jonathan Ben Avraham <[email protected]>
Cc: ILUG <[email protected]>
Subject: Re: [YBA] g++ newbie: No warn on missing method implementation?

Jonathan Ben Avraham wrote:
      Hi Shachar,
      Right, right.
      I also think that the VS2008 is doing something "extra".

      My problem is that I have a class with 70+ methods and the customer keeps 
changing the
      specs. I need some way to verify that all of the methods declared in the 
class have
      implementations. The most common mistake is that I change the method name 
in the class
      but forget to change the name in the implementation.

That would not compile. The implementation under the old name would not match 
any method
declaration, and the compiler would complain.

Shachar
      I suppose that I could write a Perl script that would automatically 
generate method
      calls from the class method declarations and then watch for link errors.

      Regards,

       - yba




--
 EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA    ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
     - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -
_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to