From: Roman <rom...@us...> - 2006-04-20 05:35:46
|
Update of /cvsroot/pygccxml/source/pyplusplus/unittests/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11158/pyplusplus/unittests/data Added Files: factory_to_be_exported.cpp factory_to_be_exported.hpp Log Message: bug fix: wrong code has been generated for public pure virtual function, when class has wrapper --- NEW FILE: factory_to_be_exported.hpp --- // Copyright 2004 Roman Yakovenko. // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef __factory_to_be_exported_hpp__ #define __factory_to_be_exported_hpp__ #include <memory> namespace factory{ class abstract{ public: virtual int run() const = 0; }; std::auto_ptr<abstract> create(); } #endif//__factory_to_be_exported_hpp__ --- NEW FILE: factory_to_be_exported.cpp --- // Copyright 2004 Roman Yakovenko. // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "factory_to_be_exported.hpp" namespace factory{ class concrete : public abstract{ virtual int run( ) const{ return 1; } }; std::auto_ptr<abstract> create(){ return std::auto_ptr<abstract>( new concrete() ); } } |