[C++-sig] boost.python and std::valarray

Trevor Tippetts tippetts at lanl.gov
Tue Nov 29 02:15:47 CET 2005


I'm relatively new (and very impressed) user of boost.python. I do have
a question, however. When I try to access members typed in c++ as
std::valarray<> in python, I get errors like this:

No Python class registered for C++ class std::valarray<int>

After searching through list archives and online docs and wikis, I have
come to the conclusion that pyste and boost.python do not have a
built-in wrapper for std::valarray<> and std::vector<> types. Is that a
correct assumption?

I found some examples people have given for wrapping std::vector<>, but
not for std::valarray<>. Does anyone know of a good example
implementation to which the rest of us could refer?

Thanks,
Trevor
-- 
After due consideration, this message was judged by Trevor Tippetts not
to contain technical or programmatic information and therefore does not
require classification review.
--
Trevor Tippetts
Los Alamos National Laboratory -- ESA-WR
T080
Los Alamos NM  87545

505-667-9009
<tippetts at lanl.gov>




More information about the Cplusplus-sig mailing list