1 2// (C) Copyright Kohei Takahashi 2014 3 4// Use, modification and distribution are subject to the 5// Boost Software License, Version 1.0. (See accompanying file 6// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 7 8// See http://www.boost.org/libs/config for more information. 9 10// MACRO: BOOST_NO_CXX14_AGGREGATE_NSDMI 11// TITLE: C++14 member initializers unavailable 12// DESCRIPTION: The compiler does not support C++14 member initializers 13 14namespace boost_no_cxx14_aggregate_nsdmi 15{ 16 17struct S 18{ 19 int x; 20 int y = 0; 21}; 22 23int test() 24{ 25 S s[] = { { 0x72 }, { 0x42 } }; 26 return s[1].x - 0x42; 27} 28 29} 30 31