Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2002-03-22 04:44:37

Aleksey Gurtovoy wrote:
> What do you think?

GCC 2.95.2 thinks, your example code is illegal. It complains about:

g++ -Wall -O2 -ansi -pedantic -o t2 In instantiation of `my<int>': instantiated from here cannot adjust access to `class my<int> operators<my<int>
>::operator ++(int)' in `class my<int>' because of local method `class my<int> & my<int>::operator
++()' with same name In function `int main()': warning: no `operator ++ (int)' declared for postfix `++',
trying prefix operator instead

I don't know if this is correct, but it seems logical to me.

Regards, Daniel

Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web:

Boost list run by bdawes at, gregod at, cpdaniel at, john at