[C++-sig] NOTICE

David Abrahams david.abrahams at rcn.com
Sun Jun 16 23:57:41 CEST 2002


For now, just change "from_python" to "arg_from_python" and you should be
fine.
There may of course be further changes to this interface in the (near)
future...

-Dave

----- Original Message -----
From: "Achim Domma" <achim.domma at syynx.de>
To: <c++-sig at python.org>
Sent: Sunday, June 16, 2002 5:40 PM
Subject: RE: [C++-sig] NOTICE


> > -----Original Message-----
> > From: c++-sig-admin at python.org [mailto:c++-sig-admin at python.org]On
> > Behalf Of David Abrahams
> >
> > Please post what you had; I'll try to come up with a translation
>
> something like this, where MagickLib::AlignType is an enum:
>
> template <>
> struct from_python<MagickLib::AlignType> : private boost::noncopyable
> {
> from_python(PyObject*){};
> bool convertible() const {return true;};
> MagickLib::AlignType operator()(PyObject*) const { ... };
> };
>
>
>
>
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig






More information about the Cplusplus-sig mailing list