]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/dll/example/tutorial7/library2.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / dll / example / tutorial7 / library2.cpp
CommitLineData
7c673cae 1// Copyright 2014 Renato Tegon Forti, Antony Polukhin.
1e59de90 2// Copyright Antony Polukhin, 2015-2022.
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// MinGW related workaround
9#define BOOST_DLL_FORCE_ALIAS_INSTANTIATION
10
11//[plugcpp_tutorial7_library2
12#include <boost/dll/alias.hpp> // for BOOST_DLL_ALIAS_SECTIONED
13#include <string>
14#include <iostream>
15
16void print_howdy(const std::string& s) {
17 std::cout << "How're you doing, " << s << '?' << std::endl;
18}
19
20void print_bored(const std::string& s) {
21 std::cout << "Are you bored, " << s << '?' << std::endl;
22}
23
24BOOST_DLL_ALIAS_SECTIONED(print_howdy, howdy, Anna)
25BOOST_DLL_ALIAS_SECTIONED(print_bored, are_you_bored, Anna)
26//]