]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_cxx14_var_templ.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_cxx14_var_templ.ipp
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
14 namespace boost_no_cxx14_variable_templates
15 {
16
17 template <class T>
18 T zero = static_cast<T>(0);
19
20 int test()
21 {
22 return zero<int>;
23 }
24
25 }
26