Tutorial :Is the const value parameter in definition but not declaration really C++?



Question:

This is similar to (but different from) this question.

Here is some simple test code to illustrate some weirdness I have discovered with Sun CC:

//---------------main.cpp  #include "wtc.hpp"    int main(int, char**)  {    testy t;    t.lame(99);    return 0;  }  //--------------wtc.hpp  #ifndef WTC_HPP_INCLUDED  #define WTC_HPP_INCLUDED    class testy  {  public:    void lame(int );  };    





        
Previous
Next Post »