[C++-sig] .def(str(self)) compile problems

Simon Burton simon at arrowtheory.com
Wed Feb 23 07:13:06 CET 2005


OK, I think I fixed this problem. It is dependant on the set of includes used.

This works (from boost/libs/python/test/operators.cpp )

#include <boost/python/operators.hpp>
#include <boost/python/class.hpp>
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>

#include <boost/python/module.hpp>
#include <boost/python/class.hpp>
#include <boost/python/operators.hpp>
#include <boost/operators.hpp>

But as soon as this is used:

#include <boost/python.hpp>

the compile fails with previously reported errors.

This has got to be a bug ?

Simon.


-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 



More information about the Cplusplus-sig mailing list