boost_no_cxx14_var_templ.ipp 617 B

1234567891011121314151617181920212223242526
  1. // (C) Copyright Kohei Takahashi 2014
  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)
  5. // See http://www.boost.org/libs/config for more information.
  6. // MACRO: BOOST_NO_CXX14_VARIABLE_TEMPLATES
  7. // TITLE: C++14 variable templates unavailable
  8. // DESCRIPTION: The compiler does not support C++14 variable templates
  9. namespace boost_no_cxx14_variable_templates
  10. {
  11. template <class T>
  12. T zero = static_cast<T>(0);
  13. int test()
  14. {
  15. return zero<int>;
  16. }
  17. }