]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/dll/example/tutorial4/static_plugin.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / dll / example / tutorial4 / static_plugin.hpp
CommitLineData
7c673cae 1// Copyright 2014 Renato Tegon Forti, Antony Polukhin.
92f5a8d4 2// Copyright 2015-2019 Antony Polukhin.
7c673cae
FG
3//
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)
7
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"
12
13namespace my_namespace {
14 boost::shared_ptr<my_plugin_api> create_plugin(); // Forward declaration
15} // namespace my_namespace
16
17BOOST_DLL_ALIAS(
18 my_namespace::create_plugin, // <-- this function is exported with...
19 create_plugin // <-- ...this alias name
20)
21//]
22