[C++-sig] Problem writing out split files with C++
Roman Yakovenko
roman.yakovenko at gmail.com
Mon Apr 7 15:35:06 CEST 2008
On Mon, Apr 7, 2008 at 3:46 PM, Oliver Schweitzer <oschweitzer at mac.com> wrote:
> Hi,
>
> Py++ Module Builder has two methods (split_module and balanced_split_module) that allow, well, splitting of generated C++ source into several files.
>
> When I call one of those methods for my Module, Py++ tries to generate several additional header files, filename like _<class/struct name>_value_traits.pypp.hpp
>
> And I get the error:
>
> IOError: [Errno 2] No such file or directory: 'C:/TEMP/Develop/PythonWrapper/_basic_string< char, std::char_traits< char >, std::allocator< char > >__value_traits.pypp.hpp'
>
> When I write out the module as a single file the related code looks like this, I guess:
>
> [code]
> namespace boost { namespace python { namespace indexing {
>
> template<>
> struct value_traits< std::basic_string< char, std::char_traits< char >, std::allocator< char > > >{
>
> static bool const equality_comparable = true;
> typedef std::equal_to< std::basic_string< char, std::char_traits< char >, std::allocator< char > > > equal_to;
>
> static bool const less_than_comparable = true;
> typedef std::less< std::basic_string< char, std::char_traits< char >, std::allocator< char > > > less;
>
> template<typename PythonClass, typename Policy>
> static void visit_container_class(PythonClass &, Policy const &){
>
> }
>
> };
>
> }/*indexing*/ } /*python*/ } /*boost*/
> [/code]
>
> Help: What is this? What is it needed for? Can I fix this/stop py++ from trying to write this?
>
This is a Py++ bug. Can you create small test case that reproduce the problem?
Thanks
P.S. This is a bug I was not able to reproduce for a long time.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Cplusplus-sig
mailing list