mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
net.endian: resolution dependence on Boost
This commit is contained in:
parent
74669a5a8a
commit
f2c09dd3af
139 changed files with 4800 additions and 202 deletions
|
@ -15,7 +15,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_CONSTEXPR
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_CONSTEXPR
|
||||
# ifdef SPROUT_NO_CXX11_CONSTEXPR
|
||||
# if defined(SPROUT_NO_CXX11_CONSTEXPR) && !defined(SPROUT_CONFIG_FORCE_CONSTEXPR)
|
||||
# define SPROUT_CONFIG_DISABLE_CONSTEXPR
|
||||
# endif // #ifdef SPROUT_NO_CXX11_CONSTEXPR
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_CONSTEXPR
|
||||
|
@ -24,7 +24,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_CXX14_CONSTEXPR
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_CXX14_CONSTEXPR
|
||||
# ifdef SPROUT_NO_CXX14_CONSTEXPR
|
||||
# if defined(SPROUT_NO_CXX14_CONSTEXPR) && !defined(SPROUT_CONFIG_FORCE_CXX14_CONSTEXPR)
|
||||
# define SPROUT_CONFIG_DISABLE_CXX14_CONSTEXPR
|
||||
# endif // #ifdef SPROUT_NO_CXX14_CONSTEXPR
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_CONSTEXPR
|
||||
|
@ -33,7 +33,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
# ifdef SPROUT_NO_CXX11_DEFAULTED_FUNCTIONS
|
||||
# if defined(SPROUT_NO_CXX11_DEFAULTED_FUNCTIONS) && !defined(SPROUT_CONFIG_FORCE_DEFAULTED_FUNCTIONS)
|
||||
# define SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
# endif // #ifdef SPROUT_NO_CXX11_CONSTEXPR
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
|
@ -42,7 +42,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
# ifdef SPROUT_NO_CXX11_DELETED_FUNCTIONS
|
||||
# if defined(SPROUT_NO_CXX11_DELETED_FUNCTIONS) && !defined(SPROUT_CONFIG_FORCE_DELETED_FUNCTIONS)
|
||||
# define SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
# endif // #ifdef SPROUT_NO_CXX11_CONSTEXPR
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
|
@ -51,7 +51,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
# ifdef SPROUT_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
|
||||
# if defined(SPROUT_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) && !defined(SPROUT_CONFIG_FORCE_EXPLICIT_CONVERSION_OPERATORS)
|
||||
# define SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
# endif // #ifdef SPROUT_NO_CXX11_CONSTEXPR
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
|
@ -60,7 +60,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
# ifdef SPROUT_NO_CXX11_NOEXCEPT
|
||||
# if defined(SPROUT_NO_CXX11_NOEXCEPT) && !defined(SPROUT_CONFIG_FORCE_NOEXCEPT)
|
||||
# define SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
# endif // #ifdef SPROUT_NO_CXX11_NOEXCEPT
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
|
@ -69,7 +69,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_TEMPLATE_ALIASES
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_TEMPLATE_ALIASES
|
||||
# ifdef SPROUT_NO_CXX11_TEMPLATE_ALIASES
|
||||
# if defined(SPROUT_NO_CXX11_TEMPLATE_ALIASES) && !defined(SPROUT_CONFIG_FORCE_TEMPLATE_ALIASES)
|
||||
# define SPROUT_CONFIG_DISABLE_TEMPLATE_ALIASES
|
||||
# endif // #ifdef SPROUT_NO_CXX11_TEMPLATE_ALIASES
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_TEMPLATE_ALIASES
|
||||
|
@ -78,7 +78,7 @@
|
|||
// SPROUT_USE_USER_DEFINED_LITERALS
|
||||
//
|
||||
#ifndef SPROUT_USE_USER_DEFINED_LITERALS
|
||||
# ifdef SPROUT_NO_CXX11_USER_DEFINED_LITERALS
|
||||
# if defined(SPROUT_NO_CXX11_USER_DEFINED_LITERALS) && !defined(SPROUT_CONFIG_FORCE_USER_DEFINED_LITERALS)
|
||||
# define SPROUT_CONFIG_DISABLE_USER_DEFINED_LITERALS
|
||||
# endif // #ifdef SPROUT_NO_CXX11_USER_DEFINED_LITERALS
|
||||
#endif // #ifndef SPROUT_USE_USER_DEFINED_LITERALS
|
||||
|
@ -87,7 +87,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_DELEGATING_CONSTRUCTORS
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_DELEGATING_CONSTRUCTORS
|
||||
# ifdef SPROUT_NO_CXX11_DELEGATING_CONSTRUCTORS
|
||||
# if defined(SPROUT_NO_CXX11_DELEGATING_CONSTRUCTORS) && !defined(SPROUT_CONFIG_FORCE_DELEGATING_CONSTRUCTORS)
|
||||
# define SPROUT_CONFIG_DISABLE_DELEGATING_CONSTRUCTORS
|
||||
# endif // #ifdef SPROUT_NO_CXX11_DELEGATING_CONSTRUCTORS
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELEGATING_CONSTRUCTORS
|
||||
|
@ -96,7 +96,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
# ifdef SPROUT_NO_CXX11_UNICODE_LITERALS
|
||||
# if defined(SPROUT_NO_CXX11_UNICODE_LITERALS) && !defined(SPROUT_CONFIG_FORCE_UNICODE_LITERALS)
|
||||
# define SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
# endif // #ifdef SPROUT_NO_CXX11_UNICODE_LITERALS
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
|
@ -105,7 +105,7 @@
|
|||
// SPROUT_CONFIG_DISABLE_VARIABLE_TEMPLATES
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_VARIABLE_TEMPLATES
|
||||
# ifdef SPROUT_NO_CXX14_VARIABLE_TEMPLATES
|
||||
# if defined(SPROUT_NO_CXX14_VARIABLE_TEMPLATES) && !defined(SPROUT_CONFIG_FORCE_VARIABLE_TEMPLATES)
|
||||
# define SPROUT_CONFIG_DISABLE_VARIABLE_TEMPLATES
|
||||
# endif // #ifdef SPROUT_NO_CXX14_VARIABLE_TEMPLATES
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_VARIABLE_TEMPLATES
|
||||
|
|
|
@ -8,55 +8,59 @@
|
|||
#ifndef SPROUT_CONFIG_COMPILER_GCC_HPP
|
||||
#define SPROUT_CONFIG_COMPILER_GCC_HPP
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if defined(__GXX_EXPERIMENTAL_CXX0X__) || (__cplusplus >= 201103L)
|
||||
# define SPROUT_GCC_CXX11
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_CONSTEXPR
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_DEFAULTED_FUNCTIONS
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_DELETED_FUNCTIONS
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_NOEXCEPT
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_TEMPLATE_ALIASES
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_USER_DEFINED_LITERALS
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_DELEGATING_CONSTRUCTORS
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_UNICODE_LITERALS
|
||||
#endif
|
||||
|
||||
#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) && defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) && defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_NO_CXX11_ATTRIBUTES
|
||||
#endif
|
||||
|
||||
#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_HAS_CONSTEXPR_CMATH_FUNCTION
|
||||
#endif
|
||||
|
||||
#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_HAS_CONSTEXPR_COPYSIGN_FUNCTION
|
||||
#endif
|
||||
|
||||
#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(SPROUT_GCC_CXX11))
|
||||
# define SPROUT_HAS_CONSTEXPR_BIT_OPERATION
|
||||
#endif
|
||||
|
||||
|
|
|
@ -25,7 +25,12 @@
|
|||
# include <sprout/config/stdlib/stlport.hpp>
|
||||
#else
|
||||
|
||||
#if !defined(__LIBCOMO__) && !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER) \
|
||||
&& !defined(_LIBCPP_VERSION) && !defined(__GLIBCPP__) && !defined(__GLIBCXX__) \
|
||||
&& !defined(__STL_CONFIG_H) && !defined(__MSL_CPP__) && !defined(__IBMCPP__) \
|
||||
&& !defined(MSIPL_COMPILE_H) && !defined(_YVALS) && !defined(_CPPLIB_VER)
|
||||
# include <utility>
|
||||
#endif
|
||||
|
||||
# if defined(__LIBCOMO__)
|
||||
# include <sprout/config/stdlib/libcomo.hpp>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
# define SPROUT_NO_CXX11_SMART_PTR
|
||||
#endif
|
||||
|
||||
#if (!defined(_HAS_TR1_IMPORTS) || (_HAS_TR1_IMPORTS+0 == 0)) && !defined(SPROUT_NO_CXX11_HDR_TUPLE)
|
||||
#if (!defined(_HAS_TR1_IMPORTS) || (_HAS_TR1_IMPORTS+0 == 0)) && !defined(SPROUT_NO_CXX11_HDR_TUPLE) && (!defined(_CPPLIB_VER) || _CPPLIB_VER < 610)
|
||||
# define SPROUT_NO_CXX11_HDR_TUPLE
|
||||
#endif
|
||||
|
||||
|
@ -42,7 +42,10 @@
|
|||
# define SPROUT_NO_CXX11_ATOMIC_SMART_PTR
|
||||
#endif
|
||||
|
||||
#define SPROUT_NO_CXX11_HDR_INITIALIZER_LIST
|
||||
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 610
|
||||
# define SPROUT_NO_CXX11_HDR_INITIALIZER_LIST
|
||||
# define SPROUT_NO_CXX11_HDR_ATOMIC
|
||||
#endif
|
||||
|
||||
#define SPROUT_NO_CXX14_INITIALIZER_LIST
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#define SPROUT_NO_CXX11_HDR_FUTURE
|
||||
#define SPROUT_NO_CXX11_HDR_TYPE_TRAITS
|
||||
#define SPROUT_NO_CXX11_ATOMIC_SMART_PTR
|
||||
#define SPROUT_NO_CXX11_HDR_ATOMIC
|
||||
|
||||
#include <utility>
|
||||
#if defined(_LIBCPP_VERSION) && (_LIBCPP_VERSION <= 1001)
|
||||
|
|
|
@ -8,7 +8,11 @@
|
|||
#ifndef SPROUT_CONFIG_STDLIB_LIBSTDCPP3_HPP
|
||||
#define SPROUT_CONFIG_STDLIB_LIBSTDCPP3_HPP
|
||||
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3) || !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if defined(__GXX_EXPERIMENTAL_CXX0X__) || (__cplusplus >= 201103)
|
||||
# define SPROUT_LIBSTDCXX11
|
||||
#endif
|
||||
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# define SPROUT_NO_CXX11_HDR_ARRAY
|
||||
# define SPROUT_NO_CXX11_HDR_REGEX
|
||||
# define SPROUT_NO_CXX11_HDR_TUPLE
|
||||
|
@ -17,7 +21,7 @@
|
|||
# define SPROUT_NO_CXX11_HDR_FUNCTIONAL
|
||||
#endif
|
||||
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# define SPROUT_NO_CXX11_HDR_CONDITION_VARIABLE
|
||||
# define SPROUT_NO_CXX11_HDR_FORWARD_LIST
|
||||
# define SPROUT_NO_CXX11_HDR_INITIALIZER_LIST
|
||||
|
@ -32,9 +36,9 @@
|
|||
# define SPROUT_NO_CXX11_HDR_MUTEX
|
||||
#endif
|
||||
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# if defined(__clang__)
|
||||
# if !__has_feature(cxx_constexpr) || !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
# if !__has_feature(cxx_constexpr) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# define SPROUT_NO_CXX11_CHAR_TRAITS
|
||||
# define SPROUT_NO_CXX11_NUMERIC_LIMITS
|
||||
# endif
|
||||
|
@ -44,26 +48,42 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# define SPROUT_NO_CXX11_HDR_FUTURE
|
||||
# define SPROUT_NO_CXX11_HDR_RANDOM
|
||||
#endif
|
||||
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# define SPROUT_NO_CXX11_HDR_TYPEINDEX
|
||||
#endif
|
||||
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# define SPROUT_NO_CXX11_HDR_CHRONO
|
||||
# define SPROUT_NO_CXX11_ALLOCATOR
|
||||
#endif
|
||||
|
||||
#define SPROUT_NO_CXX11_HDR_THREAD
|
||||
#define SPROUT_NO_CXX11_HDR_TYPE_TRAITS
|
||||
#define SPROUT_NO_CXX11_HDR_CODECVT
|
||||
#define SPROUT_NO_CXX11_ATOMIC_SMART_PTR
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# define SPROUT_NO_CXX11_HDR_ATOMIC
|
||||
# define SPROUT_NO_CXX11_HDR_THREAD
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# define SPROUT_NO_CXX11_HDR_REGEX
|
||||
# define SPROUT_NO_CXX11_HDR_THREAD
|
||||
#endif
|
||||
|
||||
#if defined(__clang_major__) && ((__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 7)))
|
||||
# define SPROUT_NO_CXX11_HDR_ATOMIC
|
||||
#endif
|
||||
|
||||
#if __GNUC__ < 5 || (__GNUC__ == 5 && __GNUC_MINOR__ < 1) || !defined(SPROUT_LIBSTDCXX11)
|
||||
# define SPROUT_NO_CXX11_HDR_TYPE_TRAITS
|
||||
# define SPROUT_NO_CXX11_HDR_CODECVT
|
||||
# define SPROUT_NO_CXX11_ATOMIC_SMART_PTR
|
||||
# define SPROUT_NO_CXX11_STD_ALIGN
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(SPROUT_LIBSTDCXX11))
|
||||
# define SPROUT_NO_CXX14_INITIALIZER_LIST
|
||||
#endif
|
||||
|
||||
|
|
|
@ -65,11 +65,15 @@
|
|||
// SPROUT_DEFAULTED_DESTRUCTOR_DECL
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL = default;
|
||||
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL = default;
|
||||
# define SPROUT_DEFAULTED_FUNCTION_DECL = default;
|
||||
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
# define SPROUT_DEFAULTED_FUNCTION(FUNC, BODY) FUNC SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
#else // #ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL SPROUT_NOEXCEPT {}
|
||||
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL SPROUT_NOEXCEPT {}
|
||||
# define SPROUT_DEFAULTED_FUNCTION_DECL SPROUT_NOEXCEPT {}
|
||||
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL SPROUT_DEFAULTED_FUNCTION_DECL
|
||||
# define SPROUT_DEFAULTED_FUNCTION(FUNC, BODY) FUNC BODY
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
|
||||
//
|
||||
|
@ -77,8 +81,10 @@
|
|||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
# define SPROUT_DELETED_FUNCTION_DECL = delete;
|
||||
# define SPROUT_DELETED_FUNCTION(FUNC) FUNC SPROUT_DELETED_FUNCTION_DECL
|
||||
#else // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
# define SPROUT_DELETED_FUNCTION_DECL ;
|
||||
# define SPROUT_DELETED_FUNCTION(FUNC) private: FUNC SPROUT_DELETED_FUNCTION_DECL
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
|
||||
//
|
||||
|
@ -92,6 +98,43 @@
|
|||
# define SPROUT_DEPRECATED
|
||||
#endif
|
||||
|
||||
//
|
||||
// SPROUT_FORCEINLINE
|
||||
//
|
||||
#if defined(_MSC_VER)
|
||||
# define SPROUT_FORCEINLINE __forceinline
|
||||
#elif defined(__GNUC__) && (__GNUC__ > 3)
|
||||
# define SPROUT_FORCEINLINE inline __attribute__ ((__always_inline__))
|
||||
#else
|
||||
# define SPROUT_FORCEINLINE inline
|
||||
#endif
|
||||
|
||||
//
|
||||
// SPROUT_NOINLINE
|
||||
//
|
||||
#if defined(_MSC_VER)
|
||||
# define SPROUT_NOINLINE __declspec(noinline)
|
||||
#elif defined(__GNUC__) && (__GNUC__ > 3)
|
||||
# if defined(__CUDACC__)
|
||||
# define SPROUT_NOINLINE __attribute__ ((noinline))
|
||||
# else
|
||||
# define SPROUT_NOINLINE __attribute__ ((__noinline__))
|
||||
# endif
|
||||
#else
|
||||
# define SPROUT_NOINLINE
|
||||
#endif
|
||||
|
||||
//
|
||||
// SPROUT_NORETURN
|
||||
//
|
||||
#if defined(_MSC_VER)
|
||||
# define SPROUT_NORETURN __declspec(noreturn)
|
||||
#elif defined(__GNUC__)
|
||||
# define SPROUT_NORETURN __attribute__ ((__noreturn__))
|
||||
#else
|
||||
# define SPROUT_NORETURN
|
||||
#endif
|
||||
|
||||
//
|
||||
// SPROUT_USE_EXPLICIT_CONVERSION_OPERATORS
|
||||
// SPROUT_EXPLICIT_CONVERSION
|
||||
|
|
64
sprout/config/user.hpp
Normal file
64
sprout/config/user.hpp
Normal file
|
@ -0,0 +1,64 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 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_USER_HPP
|
||||
#define SPROUT_CONFIG_USER_HPP
|
||||
|
||||
//
|
||||
// 言語機能を無効化するコンフィグ
|
||||
// ユーザ定義されない場合、処理系に応じて自動的に定義される。
|
||||
//
|
||||
//#define SPROUT_CONFIG_DISABLE_CONSTEXPR
|
||||
//#define SPROUT_CONFIG_DISABLE_CXX14_CONSTEXPR
|
||||
//#define SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
|
||||
//#define SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
//#define SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
//#define SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
//#define SPROUT_CONFIG_DISABLE_TEMPLATE_ALIASES
|
||||
//#define SPROUT_CONFIG_DISABLE_USER_DEFINED_LITERALS
|
||||
//#define SPROUT_CONFIG_DISABLE_DELEGATING_CONSTRUCTORS
|
||||
//#define SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
//#define SPROUT_CONFIG_DISABLE_VARIABLE_TEMPLATES
|
||||
|
||||
//
|
||||
// 言語機能を強制的に有効化するコンフィグ
|
||||
// SPROUT_CONFIG_DISABLE_*** の自動定義を抑制する。
|
||||
// SPROUT_CONFIG_DISABLE_*** がユーザ定義されている場合、無効化のほうが優先される。
|
||||
//
|
||||
//#define SPROUT_CONFIG_FORCE_CONSTEXPR
|
||||
//#define SPROUT_CONFIG_FORCE_CXX14_CONSTEXPR
|
||||
//#define SPROUT_CONFIG_FORCE_DEFAULTED_FUNCTIONS
|
||||
//#define SPROUT_CONFIG_FORCE_DELETED_FUNCTIONS
|
||||
//#define SPROUT_CONFIG_FORCE_EXPLICIT_CONVERSION_OPERATORS
|
||||
//#define SPROUT_CONFIG_FORCE_NOEXCEPT
|
||||
//#define SPROUT_CONFIG_FORCE_TEMPLATE_ALIASES
|
||||
//#define SPROUT_CONFIG_FORCE_USER_DEFINED_LITERALS
|
||||
//#define SPROUT_CONFIG_FORCE_DELEGATING_CONSTRUCTORS
|
||||
//#define SPROUT_CONFIG_FORCE_UNICODE_LITERALS
|
||||
//#define SPROUT_CONFIG_FORCE_VARIABLE_TEMPLATES
|
||||
|
||||
//
|
||||
// 実装に外部ライブラリを使用するコンフィグ
|
||||
//
|
||||
//#define SPROUT_CONFIG_USE_SSCRISK_CEL
|
||||
|
||||
//
|
||||
// 処理系機能を無効化するコンフィグ
|
||||
// ユーザ定義されない場合、処理系に応じて自動的に定義される。
|
||||
//
|
||||
//#define SPROUT_CONFIG_DISABLE_BUILTIN_CMATH_FUNCTION
|
||||
//#define SPROUT_CONFIG_DISABLE_BUILTIN_COPYSIGN_FUNCTION
|
||||
//#define SPROUT_CONFIG_DISABLE_BUILTIN_BIT_OPERATION
|
||||
|
||||
//
|
||||
// 実装の詳細を切り替えるコンフィグ
|
||||
//
|
||||
//#define SPROUT_CONFIG_DISABLE_LARGE_FLOAT_ROUNDING
|
||||
//#define SPROUT_CONFIG_DISABLE_SUPPORT_TEMPORARY_CONTAINER_ITERATION
|
||||
//#define SPROUT_CONFIG_DISABLE_SUPPORT_EFFICIENT_ARRAY_ITERATION
|
||||
|
||||
#endif // #ifndef SPROUT_CONFIG_USER_HPP
|
Loading…
Add table
Add a link
Reference in a new issue