]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/poly_collection/detail/workaround_dr1467.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / poly_collection / detail / workaround_dr1467.hpp
1 /* Copyright 2017 Joaquin M Lopez Munoz.
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
5 *
6 * See http://www.boost.org/libs/poly_collection for library home page.
7 */
8
9 #ifndef BOOST_POLY_COLLECTION_DETAIL_WORKAROUND_DR1467_HPP
10 #define BOOST_POLY_COLLECTION_DETAIL_WORKAROUND_DR1467_HPP
11
12 #if defined(_MSC_VER)
13 #pragma once
14 #endif
15
16 #include <boost/config.hpp>
17 #include <boost/detail/workaround.hpp>
18
19 #if BOOST_WORKAROUND(BOOST_GCC_VERSION,<50000)||\
20 defined(BOOST_CLANG)&&\
21 (__clang_major__<3||(__clang_major__==3&&__clang_minor__<=6))
22 /* Defect report 1467 denounces that for aggregate types an intended {}-style
23 * copy construction will be mistaken for aggregate initialization:
24 * http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1467
25 *
26 * A solution is to define a default constructor for the offending class so
27 * that it is no longer an aggregate.
28 */
29
30 #define BOOST_POLY_COLLECTION_WORKAROUND_DR1467(name) name(){}
31 #else
32 #define BOOST_POLY_COLLECTION_WORKAROUND_DR1467(name)
33 #endif
34
35 #endif