/* * Boost.Extension / hello world versions implementations * * (C) Copyright Mariano G. Consoni 2007 * 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) * * See http://www.boost.org/ for latest version. */ #include "../word.hpp" #include #include class world : public word { public: virtual const char * get_val(){return "world! v2";} }; class hello : public word { public: virtual const char * get_val(){return "| v2 hello";} }; extern "C" void BOOST_EXTENSION_EXPORT_DECL extension_export_word(boost::extensions::factory_map & fm) { fm.get()[21].set(); // int could be used as version (v2 word 1) fm.get()[22].set(); // int could be used as version (v2 word 2) }