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_VARIABLE_TEMPLATES 11// TITLE: C++14 variable templates unavailable 12// DESCRIPTION: The compiler does not support C++14 variable templates 13 14namespace boost_no_cxx14_variable_templates 15{ 16 17template <class T> 18T zero = static_cast<T>(0); 19 20int test() 21{ 22 return zero<int>; 23} 24 25} 26 27