Define BOOST_NO_CXX14_CONSTEXPR unless clang > 3.4.

Signed-off-by: Kohei Takahashi <flast@flast.jp>
This commit is contained in:
Kohei Takahashi committed 2014-10-21 01:04:06 +09:00
1 parent ec1f5273be
commit 78e67031e3
2 files changed
+19 -2

No files matched your search

+9 -1
View File
@@ -14,7 +14,15 @@
namespace boost_no_cxx14_constexpr
{
constexpr void decrement(int &value)
namespace detail
{
template <class> struct void_ { typedef void type; };
}
// Test relaxed constexpr with dependent type; for more details, see comment of
// BOOST_CXX14_CONSTEXPR definition in boost/config/compiler/clang.hpp .
template <class T>
constexpr typename detail::void_<T>::type decrement(T &value)
{
--value;
}