[C++-sig] Simple Boost.Python and NumPy example--help me make it better!

2009-06-26 Thread Christopher A Mejia
Hi, I've been trying to do something that is I would think is a very common task: I'm trying to expose to Python a C++ class with a member function that inputs an array of data. On the Python side, I would like to use NumPy to store this array of data. I've spent many hours searching online for

Re: [C++-sig] Fw: g++ compiler limitations otherthan -ftemplate-depth-n and -DBOOST_PYTHON_MAX_ARITY ?

2009-06-15 Thread Christopher A Mejia
2009 3:00 PM Subject: Re: [C++-sig] Fw: g++ compiler limitations otherthan -ftemplate-depth-n and -DBOOST_PYTHON_MAX_ARITY ? On 06/11/2009 08:13 PM, Christopher A Mejia wrote: Stefan / cplusplus-sig, Based on Stefan's encouragement, I developed a minimal complete test case Thanks ! Can

Re: [C++-sig] g++ compiler limitations other than -ftemplate-depth-n and -DBOOST_PYTHON_MAX_ARITY ?

2009-06-11 Thread Christopher A Mejia
than -ftemplate-depth-n and -DBOOST_PYTHON_MAX_ARITY ? Christopher A Mejia wrote: Stefan, Thanks for your response. The API that I am trying to wrap is the Data Client Server portion of the U.S. Naval Research Labs' SIMDIS Analysis & Display Tool (simdis.nrl.navy.mil). This is free

[C++-sig] Fw: g++ compiler limitations other than -ftemplate-depth-n and -DBOOST_PYTHON_MAX_ARITY ?

2009-06-11 Thread Christopher A Mejia
oblem, and hopefully we can use this test case to make Boost.Python an even better tool. Thanks in advance, --Chris P.S. Unfortunately, I was unable to include preprocessed source from "g++ ... -E foo.cpp" because the result was too large for the mailing list system. Christopher A Mejia

Re: [C++-sig] g++ compiler limitations other than -ftemplate-depth-n and -DBOOST_PYTHON_MAX_ARITY ?

2009-06-08 Thread Christopher A Mejia
Stefan, Thanks for your response. The API that I am trying to wrap is the Data Client Server portion of the U.S. Naval Research Labs' SIMDIS Analysis & Display Tool (simdis.nrl.navy.mil). This is free software, but does require registration and there is a human in the loop of the approval pr

[C++-sig] g++ compiler limitations other than -ftemplate-depth-n and -DBOOST_PYTHON_MAX_ARITY ?

2009-06-06 Thread Christopher A Mejia
Hi, I'm using pyplusplus and Boost.Python to wrap a class where one of the member functions has many (28) arguments, most of them with default values. The wrapping code handles the default arguments with the Py++ "do nothing" approach, i.e. not by using the BOOST_PYTHON_MEMBER_FUNCTION_OVERLOA