/* * Boost.Extension / salute 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 "salute.hpp" #include #include class hello : public salute { public: virtual const char *say(void) {return "hello";} }; class bye : public salute { public: virtual const char *say(void) {return "bye!";} }; extern "C" void BOOST_EXTENSION_EXPORT_DECL extension_export_salute(boost::extensions::factory_map & fm) { fm.get()[1].set(); fm.get()[2].set(); }