[C++-sig] Re: arg type equivivalence (constness)

David Abrahams dave at boost-consulting.com
Sat Aug 16 01:38:13 CEST 2003

"Mike Rovner" <mike at nospam.com> writes:

> Hi,
> I got a run-time error that Python call to wrapped MyFun(myinst) doesn't
> mach signature MyFun(const MyClass*)
> (where myinst = new MyClass(), i.e. non-const pointer).

Huh?  you can't write myinst = new MyClass() in Python, so how are
you calling this wrapped function?

> I'd like to keep signature intact as I have to call it with both const and
> non-const args.
> VC7.1, cvs boost from Aug 6.
> As I vaguely recall this subject was discussed earlier, but I can't find any
> refs although.
> Any pointers please.

Sorry, Mike.  Too much missing detail and too confusing.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list