/*============================================================================= Copyright (c) 2011-2016 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_CONFIG_COMPILER_CLANG_HPP #define SPROUT_CONFIG_COMPILER_CLANG_HPP #if !__has_feature(cxx_constexpr) # define SPROUT_NO_CXX11_CONSTEXPR #endif #if !__has_feature(cxx_defaulted_functions) # define SPROUT_NO_CXX11_DEFAULTED_FUNCTIONS #endif #if !__has_feature(cxx_deleted_functions) # define SPROUT_NO_CXX11_DELETED_FUNCTIONS #endif #if !__has_feature(cxx_explicit_conversions) # define SPROUT_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS #endif #if !__has_feature(cxx_noexcept) # define SPROUT_NO_CXX11_NOEXCEPT #endif #if !__has_feature(cxx_alias_templates) # define SPROUT_NO_CXX11_TEMPLATE_ALIASES #endif #if !__has_feature(cxx_user_literals) # define SPROUT_NO_CXX11_USER_DEFINED_LITERALS #endif #if !__has_feature(cxx_delegating_constructors) # define SPROUT_NO_CXX11_DELEGATING_CONSTRUCTORS #endif #if !__has_feature(cxx_unicode_literals) # define SPROUT_NO_CXX11_UNICODE_LITERALS #endif #if !__has_feature(cxx_attributes) # define SPROUT_NO_CXX11_ATTRIBUTES #endif #if !__has_feature(cxx_relaxed_constexpr) # define SPROUT_NO_CXX14_CONSTEXPR #endif #if !__has_feature(cxx_variable_templates) # define SPROUT_NO_CXX14_VARIABLE_TEMPLATES #endif #if (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 0)) # define SPROUT_HAS_CONSTEXPR_COPYSIGN_FUNCTION #endif #if !defined(SPROUT_NO_CXX11_CONSTEXPR) # define SPROUT_WORKAROUND_NOT_TERMINATE_RECURSIVE_CONSTEXPR_FUNCTION_TEMPLATE #endif #if (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4)) # define SPROUT_WORKAROUND_NEEDS_EXPLICIT_EMPTY_BASE_CLASS_CONSTRUCT #endif #endif // #ifndef SPROUT_CONFIG_COMPILER_CLANG_HPP