[C++-sig] small operators bug

Roman Yakovenko roman.yakovenko at gmail.com
Thu Oct 6 15:46:44 CEST 2005

On 10/6/05, David Abrahams <dave at boost-consulting.com> wrote:
> Roman Yakovenko <roman.yakovenko at gmail.com> writes:
> It's not a bug.  The behavior matches the usual function hiding
> behavior in C++ derived classes, and, I believe, it also matches the
> behavior of regular Python classes.

You are right. I introduce the wrong use case. What I tried to
introduce is next use case:
( taken from http://boost.org/libs/utility/operators.htm tutorials )

class MyInt : public boost::operators<MyInt> {...};

And in this case I can write, I think,
MyInt x, y;
MyInt z = x + y;

I tried to export class similar to MyInt, but failed. I will try to
bring correct use case.
Any way if you understand what I talked about, could you explain how
this functionality
( overloading operators ) should be exported?


> --
> Dave Abrahams
> Boost Consulting
> www.boost-consulting.com

Roman Yakovenko

More information about the Cplusplus-sig mailing list