]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_std_messages.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_std_messages.ipp
1 // (C) Copyright John Maddock 2001.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for the most recent version.
7
8 // MACRO: BOOST_NO_STD_MESSAGES
9 // TITLE: std::messages<charT>
10 // DESCRIPTION: The standard library lacks a conforming std::messages facet.
11
12 #include <locale>
13
14
15 namespace boost_no_std_messages{
16
17 //
18 // this just has to complile, not run:
19 //
20 void test_messages(const std::messages<char>& m)
21 {
22 static const std::locale l;
23 static const std::string name("foobar");
24 m.close(m.open(name, l));
25 }
26
27 int test()
28 {
29 const std::messages<char>* pmf = 0;
30 (void) &pmf;
31 return 0;
32 }
33
34 }
35
36
37
38
39