Boost logo

Boost :

From: rwgk_at_[hidden]
Date: 2000-11-06 14:44:31


I am using py_cpp_20001106 + the latest version of gen_extclass.py as
found at http://cvs.sourceforge.net/cgi-
bin/cvsweb.cgi/boost/boost/development/py_cpp/gen_extclass.py
(revision 1.9).

My platform is Compaq C++ V6.2-024 for Digital UNIX V5.0 (Rev. 910)
with STLport 4.1b3.

In order to compile, I had to comment out one line in
extclass_demo.cpp:

% diff extclass_demo.cpp.orig extclass_demo.cpp
639c639
< template class py::ExtensionClass<Record>; // explicitly instantiate

---
> //template class py::ExtensionClass<Record>; // explicitly 
instantiate
With this change, all is fine (I also tested gen_all.py).
Ralf
P.S.: Here is the error message that I got without the original 
version of extclass_demo.cpp:
cxx -I/usr/local/STLport-4.1b3/stlport -D__USE_STD_IOSTREAM  -
D__STL_NO_SGI_IOSTREAMS  -D__STL_NO_NEW_C_HEADERS  -
D_RWSTD_COMPILE_INSTANTIATE=1 -I/usr/local/boost_1_18_2 -
I/usr/local/include/python1.5 -I..  -std strict_ansi -msg_disable 
186,450,1115  -c extclass_demo.cpp
cxx: Error: extclass_demo.cpp, line 639: class
          "py::ExtensionClass<extclass_demo::Record,
          py::HeldInstance<extclass_demo::Record>>" cannot be 
explicitly
          instantiated in the current scope
template class py::ExtensionClass<Record>; // explicitly instantiate
---------^

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk