1 // Copyright 2014 Renato Tegon Forti, Antony Polukhin.
2 // Copyright 2015 Antony Polukhin.
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt
6 // or copy at http://www.boost.org/LICENSE_1_0.txt)
8 //[plugcpp_my_plugin_static
9 #include <boost/dll/alias.hpp> // for BOOST_DLL_ALIAS
10 #include <boost/shared_ptr.hpp>
11 #include "../tutorial_common/my_plugin_api.hpp"
13 namespace my_namespace {
14 boost::shared_ptr<my_plugin_api> create_plugin(); // Forward declaration
15 } // namespace my_namespace
18 my_namespace::create_plugin, // <-- this function is exported with...
19 create_plugin // <-- ...this alias name