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)
6 // See http://www.boost.org/libs/config for most recent version.
8 // MACRO: BOOST_NO_INCLASS_MEMBER_INITIALIZATION
9 // TITLE: inline member constant initialisation
10 // DESCRIPTION: Compiler violates std::9.4.2/4.
13 namespace boost_no_inclass_member_initialization{
18 template <bool b1, bool b2, bool b3, bool b4, bool b5, bool b6, bool b7>
21 static const bool value = true;
24 struct ice_or_helper<false, false, false, false, false, false, false>
26 static const bool value = false;
29 template <bool b1, bool b2, bool b3 = false, bool b4 = false, bool b5 = false, bool b6 = false, bool b7 = false>
32 static const bool value = ice_or_helper<b1, b2, b3, b4, b5, b6, b7>::value;
38 static const bool value = false;
44 static const bool value = true;
47 #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
48 # define BOOST_UNUSED_ATTRIBUTE __attribute__((unused))
50 # define BOOST_UNUSED_ATTRIBUTE
56 typedef int a1[ice_or< is_int<int>::value, is_int<UDT>::value>::value ? 1 : -1] BOOST_UNUSED_ATTRIBUTE;
62 #undef BOOST_UNUSED_ATTRIBUTE