[pygccxml-commit] SF.net SVN: pygccxml:[1705] pyplusplus_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2009-04-24 19:49:02
|
Revision: 1705 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1705&view=rev Author: roman_yakovenko Date: 2009-04-24 19:48:52 +0000 (Fri, 24 Apr 2009) Log Message: ----------- adding test for operator<< Modified Paths: -------------- pyplusplus_dev/unittests/autoconfig.py pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp Modified: pyplusplus_dev/unittests/autoconfig.py =================================================================== --- pyplusplus_dev/unittests/autoconfig.py 2009-04-24 19:47:36 UTC (rev 1704) +++ pyplusplus_dev/unittests/autoconfig.py 2009-04-24 19:48:52 UTC (rev 1705) @@ -37,6 +37,7 @@ gccxml.define_symbols.append( '__PYGCCXML_%s__' % gccxml.compiler.upper() ) if 'msvc9' == gccxml.compiler: gccxml.define_symbols.append( '_HAS_TR1=0' ) + gccxml.include_paths.append( boost.include ) print 'GCCXML configured to simulate compiler ', cxx_parsers_cfg.gccxml.compiler Modified: pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp =================================================================== --- pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp 2009-04-24 19:47:36 UTC (rev 1704) +++ pyplusplus_dev/unittests/data/indexing_suites2_to_be_exported.hpp 2009-04-24 19:48:52 UTC (rev 1705) @@ -20,6 +20,7 @@ #endif//GCCXML #endif +#include <iostream> #include <vector> #include <string> #include <map> @@ -107,6 +108,13 @@ } +std::ostream& operator<<( std::ostream& o, const indexing_suites2::set_strings_t& x){ + for( indexing_suites2::set_strings_t::const_iterator index = x.begin(); index != x.end(); ++index ){ + o << *index << ','; + } + return o; +} + namespace pyplusplus{ namespace aliases{ typedef std::vector<indexing_suites2::item_t*> items_ptr_t; }} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |