STANDARD_LIBRARY_HAS_ITERATOR_TRAITS
has been added to CXX_Config.h that you may need to toggle if you get an error on the two lines that mention random_access_iterator. The current definition is correct for VC6 and EGCS-19990616.
2. A new constructor was added to Module to allow construction from a string containing the module name. A test was added for this to the demo.
Documentation is in progress at http://xfiles.llnl.gov.
To use CXX you use the header files in Include, such as CXX_Objects.h or CXX_Extensions.h. You must include the sources in Src in your sources to supply parts of the CXX classes required.
A demo is included. The Setup file in this directory compiles this demo named "example". To try the demo, which is also a test routine, you import example and then execute:
example.test()
You can also play with the extension object whose constructor is named "r":
s = r(1, 100, 2)
print s[2] # should print 5
Compilation with Microsoft Visual C++ 5.0 will succeed but only if you have Service Pack 3 installed. Compilation has been known to succeed on a Unix system using KCC by using:
setenv CCC "KCC -x"
before running makethis.py.
There is also a python.cxx file for making a stand-alone Python containing this example, as well as a similar file arraytest.cxx for testing Array.
Comments to dubois1@llnl.gov, please.
Paul Dubois