[C++-sig] Wrapping a class with private operator&()
Dennis Brakhane
brakhane at googlemail.com
Fri Oct 7 18:02:17 CEST 2005
Matthias Baas wrote:
> Hi,
>
> I'm having problems wrapping a C++ class that has a private reference
> operator (operator&()). Here is a minimal example that shows the problem:
Why would anyone do such a thing?
You could create a wrapper (see the tutorial)
class Foo { //private & };
struct FooWrap : Foo
{
Bar *operator& {return this;}
};
class_<FooWrap,boost::noncopyable>("Foo")
.def(...);
More information about the Cplusplus-sig
mailing list