Hello Rutger,
About constness problem,
So far, I've experienced problem with STL containers.
template<class T,class Allocator=allocator<T> >
class vector {
public:
typedef T* iterator;
typedef const T* const_iterator;
iterator begin();
iterator end();
const_iterator begin() const;
const_iterator end() const;
...
};
This case, return type is different. In your case, return
type is the same. I guess it is OK. It may depend on compiler and
library.
Thank you
Masaharu Goto
>
>Hi Masaharu,
>
>I'm rather suprised by this problem of CINT. In order to solve the problem
>of non-declared-const members of members which should be const, I often
>exactly define them twice. For example I want the Print member which I
>inherit from TObject to be const. So I have both:
>
> virtual void Print(Option_t *option = "");
> virtual void Print(Option_t *option = "") const;
>
>Where the first simply calls the second. I didn't notice any problems
>with this. As you don't advice to do so, what kind of problems would you
>expect?
>
>Cheers, Rutger
>
>p.s. Now that I think of it, this might explain the problem I report in
>bug report 542. Is that indeed the cause?
>
>On Mon, 17 Jan 2000, Masaharu Goto wrote:
>
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:17 MET