[C++-sig] .def(str(self)) compile problems
simon at arrowtheory.com
Tue Feb 22 00:42:41 CET 2005
On Sun, 20 Feb 2005 14:58:21 -0800 (PST)
"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> wrote:
> --- Simon Burton <simon at arrowtheory.com> wrote:
> > class_<Rational>()
> This is wrong. It must be
> That's your "compiler error", I believe.
> Clearly, the tutorial example is just made up and was never tested.
Well, I tried this and many other things, to no avail.
> I just see that the def(str(self)) does in fact work (wow). Look at
> I know this works with most if not all supported compilers.
> The test directory is a great reference.
Aha! Yes, I am able to compile operators.cpp.
Hmmm, the plot thickens :)
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Ph. 61 02 6249 6940
More information about the Cplusplus-sig