fix for VC++11

This commit is contained in:
bolero-MURAKAMI 2012-12-17 23:10:23 +09:00
parent 5597dcec9b
commit 8b80b159c8
148 changed files with 336 additions and 181 deletions

View file

@ -898,7 +898,7 @@ namespace sprout {
word_type* wp_;
std::size_t bpos_;
private:
reference() = delete;
reference() SPROUT_DELETED_FUNCTION_DECL
public:
SPROUT_CONSTEXPR reference(bitset& b, std::size_t pos) SPROUT_NOEXCEPT
: wp_(&b.getword(pos))

View file

@ -44,7 +44,7 @@ namespace sprout {
return *this;
}
private:
arg& operator=(arg const&) = delete;
arg& operator=(arg const&) SPROUT_DELETED_FUNCTION_DECL
};
template<typename T>
struct arg<T&> {
@ -63,7 +63,7 @@ namespace sprout {
return *this;
}
private:
arg& operator=(arg const&) = delete;
arg& operator=(arg const&) SPROUT_DELETED_FUNCTION_DECL
};
template<typename T, typename Void = void>

View file

@ -111,7 +111,7 @@ namespace sprout {
// auto_pan
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::auto_pan_forwarder auto_pan{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::auto_pan_forwarder auto_pan = {};
} // anonymous-namespace
//

View file

@ -46,7 +46,7 @@ namespace sprout {
// changed_volume
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::changed_volume_forwarder changed_volume{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::changed_volume_forwarder changed_volume = {};
} // anonymous-namespace
//

View file

@ -119,7 +119,7 @@ namespace sprout {
// chorus
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::chorus_forwarder chorus{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::chorus_forwarder chorus = {};
} // anonymous-namespace
//

View file

@ -48,7 +48,7 @@ namespace sprout {
// clipped
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::clipped_forwarder clipped{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::clipped_forwarder clipped = {};
} // anonymous-namespace
//

View file

@ -101,7 +101,7 @@ namespace sprout {
// compressed
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::compressed_forwarder compressed{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::compressed_forwarder compressed = {};
} // anonymous-namespace
//

View file

@ -49,7 +49,7 @@ namespace sprout {
// distorted
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::distorted_forwarder distorted{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::distorted_forwarder distorted = {};
} // anonymous-namespace
//

View file

@ -50,7 +50,7 @@ namespace sprout {
// fuzzed
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::fuzzed_forwarder fuzzed{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::fuzzed_forwarder fuzzed = {};
} // anonymous-namespace
//

View file

@ -91,7 +91,7 @@ namespace sprout {
// noise_gated
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::noise_gated_forwarder noise_gated{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::noise_gated_forwarder noise_gated = {};
} // anonymous-namespace
//

View file

@ -77,7 +77,7 @@ namespace sprout {
// overdriven
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::overdriven_forwarder overdriven{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::overdriven_forwarder overdriven = {};
} // anonymous-namespace
//

View file

@ -107,7 +107,7 @@ namespace sprout {
// pseudo_stereo
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::pseudo_stereo_forwarder pseudo_stereo{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::pseudo_stereo_forwarder pseudo_stereo = {};
} // anonymous-namespace
//

View file

@ -41,7 +41,7 @@ namespace sprout {
// rectified
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::rectified_forwarder rectified{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::rectified_forwarder rectified = {};
} // anonymous-namespace
//

View file

@ -114,7 +114,7 @@ namespace sprout {
// reverbed
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::reverbed_forwarder reverbed{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::reverbed_forwarder reverbed = {};
} // anonymous-namespace
//

View file

@ -54,7 +54,7 @@ namespace sprout {
// superposed
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::superposed_forwarder superposed{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::superposed_forwarder superposed = {};
} // anonymous-namespace
//

View file

@ -86,7 +86,7 @@ namespace sprout {
// tremolo
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::tremolo_forwarder tremolo{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::tremolo_forwarder tremolo = {};
} // anonymous-namespace
//

View file

@ -118,7 +118,7 @@ namespace sprout {
// vibrato
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::vibrato_forwarder vibrato{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::vibrato_forwarder vibrato = {};
} // anonymous-namespace
//

View file

@ -20,7 +20,7 @@ namespace sprout {
// vocal_cancelled
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::vocal_cancelled_forwarder vocal_cancelled{};
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::vocal_cancelled_forwarder vocal_cancelled = {};
} // anonymous-namespace
//

View file

@ -29,7 +29,7 @@ namespace sprout {
// as_complex
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_complex_forwarder as_complex{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_complex_forwarder as_complex = {};
} // anonymous-namespace
//

View file

@ -30,7 +30,7 @@ namespace sprout {
// as_imag
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_imag_forwarder as_imag{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_imag_forwarder as_imag = {};
} // anonymous-namespace
//

View file

@ -88,8 +88,8 @@ namespace sprout {
// as_pcm_wave16
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_pcm_wave_forwarder<std::uint8_t> as_pcm_wave8{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_pcm_wave_forwarder<std::int16_t> as_pcm_wave16{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_pcm_wave_forwarder<std::uint8_t> as_pcm_wave8 = {};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_pcm_wave_forwarder<std::int16_t> as_pcm_wave16 = {};
} // anonymous-namespace
} // namespace formats

View file

@ -30,7 +30,7 @@ namespace sprout {
// as_real
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_real_forwarder as_real{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_real_forwarder as_real = {};
} // anonymous-namespace
//

View file

@ -68,7 +68,7 @@ namespace sprout {
// effected_each_cannel
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::effected_each_cannel_forwarder effected_each_cannel{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::effected_each_cannel_forwarder effected_each_cannel = {};
} // anonymous-namespace
//

View file

@ -44,7 +44,7 @@ namespace sprout {
// effected_left_cannel
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::effected_left_cannel_forwarder effected_left_cannel{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::effected_left_cannel_forwarder effected_left_cannel = {};
} // anonymous-namespace
//

View file

@ -44,7 +44,7 @@ namespace sprout {
// effected_right_cannel
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::effected_right_cannel_forwarder effected_right_cannel{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::effected_right_cannel_forwarder effected_right_cannel = {};
} // anonymous-namespace
//

View file

@ -17,7 +17,7 @@ namespace sprout {
// left_channel
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::left_channel_forwarder left_channel{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::left_channel_forwarder left_channel = {};
} // anonymous-namespace
//

View file

@ -17,7 +17,7 @@ namespace sprout {
// right_channel
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::right_channel_forwarder right_channel{};
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::right_channel_forwarder right_channel = {};
} // anonymous-namespace
//

View file

@ -11,7 +11,7 @@ namespace sprout {
// stereo
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::adaptors::alternated_forwarder stereo{};
SPROUT_STATIC_CONSTEXPR sprout::adaptors::alternated_forwarder stereo = {};
} // anonymous-namespace
} // namespace formats

View file

@ -32,7 +32,7 @@ namespace sprout {
// blanked
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::waves::blanked_forwarder blanked{};
SPROUT_STATIC_CONSTEXPR sprout::compost::waves::blanked_forwarder blanked = {};
} // anonymous-namespace
} // namespace waves

View file

@ -124,7 +124,7 @@ namespace sprout {
// white_noise
//
namespace {
SPROUT_STATIC_CONSTEXPR sprout::compost::waves::white_noise_forwarder white_noise{};
SPROUT_STATIC_CONSTEXPR sprout::compost::waves::white_noise_forwarder white_noise = {};
} // anonymous-namespace
//

View file

@ -12,6 +12,24 @@
# endif // #ifdef SPROUT_NO_CONSTEXPR
#endif // #ifndef SPROUT_CONFIG_DISABLE_CONSTEXPR
//
// SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
//
#ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
# ifdef SPROUT_NO_DEFAULTED_FUNCTIONS
# define SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
# endif // #ifdef SPROUT_NO_CONSTEXPR
#endif // #ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
//
// SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
//
#ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
# ifdef SPROUT_NO_DELETED_FUNCTIONS
# define SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
# endif // #ifdef SPROUT_NO_CONSTEXPR
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
//
// SPROUT_CONFIG_DISABLE_NOEXCEPT
//

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_BORLAND_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_BORLAND_HPP

View file

@ -5,6 +5,14 @@
# define SPROUT_NO_CONSTEXPR
#endif
#if !__has_feature(cxx_defaulted_functions)
# define SPROUT_NO_DEFAULTED_FUNCTIONS
#endif
#if !__has_feature(cxx_deleted_functions)
# define SPROUT_NO_DELETED_FUNCTIONS
#endif
#if !__has_feature(cxx_noexcept)
# define SPROUT_NO_NOEXCEPT
#endif
@ -21,6 +29,10 @@
# define SPROUT_NO_DELEGATING_CONSTRUCTORS
#endif
#if !__has_feature(cxx_unicode_literals)
# define SPROUT_NO_UNICODE_LITERALS
#endif
#if !defined(SPROUT_NO_CONSTEXPR)
# define SPROUT_WORKAROUND_NOT_TERMINATE_RECURSIVE_CONSTEXPR_FUNCTION_TEMPLATE
#endif

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_CODEGEAR_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_CODEGEAR_HPP

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_COMMON_EDG_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_COMMON_EDG_HPP

View file

@ -4,6 +4,12 @@
#ifdef SPROUT_NO_CONSTEXPR
# define SPROUT_NO_CXX11_CONSTEXPR
#endif
#ifdef SPROUT_NO_DEFAULTED_FUNCTIONS
# define SPROUT_NO_CXX11_DEFAULTED_FUNCTIONS
#endif
#ifdef SPROUT_NO_DELETED_FUNCTIONS
# define SPROUT_NO_CXX11_DELETED_FUNCTIONS
#endif
#ifdef SPROUT_NO_NOEXCEPT
# define SPROUT_NO_CXX11_CNOEXCEPT
#endif
@ -16,5 +22,8 @@
#ifdef SPROUT_NO_DELEGATING_CONSTRUCTORS
# define SPROUT_NO_CXX11_CDELEGATING_CONSTRUCTORS
#endif
#ifdef SPROUT_NO_UNICODE_LITERALS
# define SPROUT_NO_CXX11_UNICODE_LITERALS
#endif
#endif // #ifndef SPROUT_CONFIG_COMPILER_CXX11_HPP

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_DIGITALMARS_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_DIGITALMARS_HPP

View file

@ -5,6 +5,14 @@
# define SPROUT_NO_CONSTEXPR
#endif
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
# define SPROUT_NO_DEFAULTED_FUNCTIONS
#endif
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
# define SPROUT_NO_DELETED_FUNCTIONS
#endif
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
# define SPROUT_NO_NOEXCEPT
#endif
@ -21,6 +29,10 @@
# define SPROUT_NO_DELEGATING_CONSTRUCTORS
#endif
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
# define SPROUT_NO_UNICODE_LITERALS
#endif
#if ((__GNUC__ >= 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__GXX_EXPERIMENTAL_CXX0X__))
# define SPROUT_HAS_CONSTEXPR_CMATH_FUNCTION
#endif

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_GCC_XML_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_GCC_XML_HPP

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_METROWERKS_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_METROWERKS_HPP

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_MPW_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_MPW_HPP

View file

@ -3,10 +3,13 @@
#if __PATHCC__ >= 4
# define SPROUT_NO_CONSTEXPR
# define SPROUT_NO_DEFAULTED_FUNCTIONS
# define SPROUT_NO_DELETED_FUNCTIONS
# define SPROUT_NO_NOEXCEPT
# define SPROUT_NO_TEMPLATE_ALIASES
# define SPROUT_NO_USER_DEFINED_LITERALS
# define SPROUT_NO_DELEGATING_CONSTRUCTORS
# define SPROUT_NO_UNICODE_LITERALS
#endif
#endif // #ifndef SPROUT_CONFIG_COMPILER_PATHSCALE_HPP

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_PGI_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_PGI_HPP

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_SUNPRO_CC_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_SUNPRO_CC_HPP

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_VACPP_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_VACPP_HPP

View file

@ -2,9 +2,12 @@
#define SPROUT_CONFIG_COMPILER_VISUALC_HPP
#define SPROUT_NO_CONSTEXPR
#define SPROUT_NO_DEFAULTED_FUNCTIONS
#define SPROUT_NO_DELETED_FUNCTIONS
#define SPROUT_NO_NOEXCEPT
#define SPROUT_NO_TEMPLATE_ALIASES
#define SPROUT_NO_USER_DEFINED_LITERALS
#define SPROUT_NO_DELEGATING_CONSTRUCTORS
#define SPROUT_NO_UNICODE_LITERALS
#endif // #ifndef SPROUT_CONFIG_COMPILER_VISUALC_HPP

View file

@ -17,6 +17,20 @@
# define SPROUT_STATIC_CONSTEXPR_DATA_MEMBER_OUTER(EXPR) = EXPR
#endif // #ifndef SPROUT_CONFIG_DISABLE_CONSTEXPR
#ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL = default;
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL = default;
#else // #ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
# define SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL {}
# define SPROUT_DEFAULTED_DESTRUCTOR_DECL {}
#endif // #ifndef SPROUT_CONFIG_DISABLE_DEFAULTED_FUNCTIONS
#ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
# define SPROUT_DELETED_FUNCTION_DECL = delete;
#else // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
# define SPROUT_DELETED_FUNCTION_DECL ;
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
#ifndef SPROUT_CONFIG_DISABLE_NOEXCEPT
# define SPROUT_NOEXCEPT noexcept
# define SPROUT_NOEXCEPT_EXPR(EXPR) noexcept(EXPR)

View file

@ -20,7 +20,7 @@ namespace sprout {
template<typename IntType, typename CStrIterator>
inline SPROUT_CONSTEXPR IntType
str_to_int_impl_1(CStrIterator str, int base, IntType val, IntType x, bool negative) {
return x == static_cast<IntType>(-1) ? (negative ? -val : val)
return x == static_cast<IntType>(-1) ? (negative ? -1 * val : val)
: val > (std::numeric_limits<IntType>::max() - x - (negative ? 1 : 0)) / base
? (negative ? std::numeric_limits<IntType>::min() : std::numeric_limits<IntType>::max())
: sprout::detail::str_to_int_impl_1<IntType>(

View file

@ -19,6 +19,8 @@ namespace sprout {
private:
state_type& s_save_;
aspect_type const a_save_;
private:
ios_flags_saver& operator=(ios_flags_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit ios_flags_saver(state_type& s)
: s_save_(s)
@ -28,7 +30,6 @@ namespace sprout {
: s_save_(s)
, a_save_(s.flags(a))
{}
ios_flags_saver& operator=(ios_flags_saver const&) = delete;
~ios_flags_saver() {
this->restore();
}
@ -44,6 +45,8 @@ namespace sprout {
private:
state_type& s_save_;
aspect_type const a_save_;
private:
ios_precision_saver& operator=(ios_precision_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit ios_precision_saver(state_type& s)
: s_save_(s)
@ -53,7 +56,6 @@ namespace sprout {
: s_save_(s)
, a_save_(s.precision(a))
{}
ios_precision_saver& operator=(ios_precision_saver const&) = delete;
~ios_precision_saver() {
this->restore();
}
@ -69,6 +71,8 @@ namespace sprout {
private:
state_type& s_save_;
aspect_type const a_save_;
private:
ios_width_saver& operator=(ios_width_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit ios_width_saver(state_type& s)
: s_save_(s)
@ -78,7 +82,6 @@ namespace sprout {
: s_save_(s)
, a_save_(s.width(a))
{}
ios_width_saver& operator=(ios_width_saver const&) = delete;
~ios_width_saver() {
this->restore();
}
@ -95,6 +98,8 @@ namespace sprout {
private:
state_type& s_save_;
aspect_type const a_save_;
private:
basic_ios_iostate_saver& operator=(basic_ios_iostate_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit basic_ios_iostate_saver(state_type& s)
: s_save_(s)
@ -106,7 +111,6 @@ namespace sprout {
{
s.clear(a);
}
basic_ios_iostate_saver& operator=(basic_ios_iostate_saver const&) = delete;
~basic_ios_iostate_saver() {
this->restore();
}
@ -123,6 +127,8 @@ namespace sprout {
private:
state_type& s_save_;
aspect_type const a_save_;
private:
basic_ios_exception_saver& operator=(basic_ios_exception_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit basic_ios_exception_saver(state_type& s)
: s_save_(s)
@ -134,7 +140,6 @@ namespace sprout {
{
s.exceptions(a);
}
basic_ios_exception_saver& operator=(basic_ios_exception_saver const&) = delete;
~basic_ios_exception_saver() {
this->restore();
}
@ -151,6 +156,8 @@ namespace sprout {
private:
state_type& s_save_;
aspect_type const a_save_;
private:
basic_ios_tie_saver& operator=(basic_ios_tie_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit basic_ios_tie_saver(state_type& s)
: s_save_(s)
@ -160,7 +167,6 @@ namespace sprout {
: s_save_(s)
, a_save_(s.tie(a))
{}
basic_ios_tie_saver& operator=(basic_ios_tie_saver const&) = delete;
~basic_ios_tie_saver() {
this->restore();
}
@ -177,6 +183,8 @@ namespace sprout {
private:
state_type& s_save_;
aspect_type const a_save_;
private:
basic_ios_rdbuf_saver& operator=(basic_ios_rdbuf_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit basic_ios_rdbuf_saver(state_type& s)
: s_save_(s)
@ -186,7 +194,6 @@ namespace sprout {
: s_save_(s)
, a_save_(s.rdbuf(a))
{}
basic_ios_rdbuf_saver& operator=(basic_ios_rdbuf_saver const&) = delete;
~basic_ios_rdbuf_saver() {
this->restore();
}
@ -203,6 +210,8 @@ namespace sprout {
private:
state_type& s_save_;
aspect_type const a_save_;
private:
basic_ios_fill_saver& operator=(basic_ios_fill_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit basic_ios_fill_saver(state_type& s)
: s_save_(s)
@ -212,7 +221,6 @@ namespace sprout {
: s_save_(s)
, a_save_(s.fill(a))
{}
basic_ios_fill_saver& operator=(basic_ios_fill_saver const&) = delete;
~basic_ios_fill_saver() {
this->restore();
}
@ -229,6 +237,8 @@ namespace sprout {
private:
state_type& s_save_;
aspect_type const a_save_;
private:
basic_ios_locale_saver& operator=(basic_ios_locale_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit basic_ios_locale_saver(state_type& s)
: s_save_(s)
@ -238,7 +248,6 @@ namespace sprout {
: s_save_(s)
, a_save_(s.imbue(a))
{}
basic_ios_locale_saver& operator=(basic_ios_locale_saver const&) = delete;
~basic_ios_locale_saver() {
this->restore();
}
@ -256,6 +265,8 @@ namespace sprout {
state_type& s_save_;
aspect_type const a_save_;
index_type const i_save_;
private:
ios_iword_saver& operator=(ios_iword_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit ios_iword_saver(state_type& s, index_type i)
: s_save_(s)
@ -269,7 +280,6 @@ namespace sprout {
{
s.iword(i) = a;
}
ios_iword_saver& operator=(ios_iword_saver const&) = delete;
~ios_iword_saver() {
this->restore();
}
@ -287,6 +297,8 @@ namespace sprout {
state_type& s_save_;
aspect_type const a_save_;
index_type const i_save_;
private:
ios_pword_saver& operator=(ios_pword_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit ios_pword_saver(state_type& s, index_type i)
: s_save_(s)
@ -300,7 +312,6 @@ namespace sprout {
{
s.pword(i) = a;
}
ios_pword_saver& operator=(ios_pword_saver const&) = delete;
~ios_pword_saver() {
this->restore();
}
@ -317,6 +328,8 @@ namespace sprout {
state_type::fmtflags const a1_save_;
std::streamsize const a2_save_;
std::streamsize const a3_save_;
private:
ios_base_all_saver& operator=(ios_base_all_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit ios_base_all_saver(state_type& s)
: s_save_(s)
@ -324,7 +337,6 @@ namespace sprout {
, a2_save_(s.precision())
, a3_save_(s.width())
{}
ios_base_all_saver& operator=(ios_base_all_saver const&) = delete;
~ios_base_all_saver() {
this->restore();
}
@ -350,6 +362,8 @@ namespace sprout {
std::basic_streambuf<Elem, Traits>* const a7_save_;
typename state_type::char_type const a8_save_;
std::locale const a9_save_;
private:
basic_ios_all_saver& operator=(basic_ios_all_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
explicit basic_ios_all_saver(state_type& s)
: s_save_(s)
@ -363,7 +377,6 @@ namespace sprout {
, a8_save_(s.fill())
, a9_save_(s.getloc())
{}
basic_ios_all_saver& operator=(basic_ios_all_saver const&) = delete;
~basic_ios_all_saver() {
this->restore();
}
@ -389,6 +402,8 @@ namespace sprout {
index_type const i_save_;
long const a1_save_;
void* const a2_save_;
private:
ios_all_word_saver& operator=(ios_all_word_saver const&) SPROUT_DELETED_FUNCTION_DECL
public:
ios_all_word_saver(state_type& s, index_type i)
: s_save_(s)
@ -396,7 +411,6 @@ namespace sprout {
, a1_save_(s.iword(i))
, a2_save_(s.pword(i))
{}
ios_all_word_saver& operator=(ios_all_word_saver const&) = delete;
~ios_all_word_saver() {
this->restore();
}

View file

@ -59,36 +59,36 @@ namespace sprout {
namespace placeholders {
namespace {
SPROUT_STATIC_CONSTEXPR sprout::placeholder<1> _1{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<2> _2{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<3> _3{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<4> _4{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<5> _5{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<6> _6{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<7> _7{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<8> _8{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<9> _9{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<10> _10{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<11> _11{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<12> _12{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<13> _13{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<14> _14{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<15> _15{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<16> _16{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<17> _17{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<18> _18{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<19> _19{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<20> _20{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<21> _21{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<22> _22{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<23> _23{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<24> _24{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<25> _25{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<26> _26{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<27> _27{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<28> _28{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<29> _29{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<30> _30{};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<1> _1 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<2> _2 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<3> _3 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<4> _4 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<5> _5 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<6> _6 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<7> _7 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<8> _8 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<9> _9 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<10> _10 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<11> _11 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<12> _12 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<13> _13 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<14> _14 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<15> _15 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<16> _16 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<17> _17 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<18> _18 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<19> _19 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<20> _20 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<21> _21 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<22> _22 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<23> _23 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<24> _24 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<25> _25 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<26> _26 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<27> _27 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<28> _28 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<29> _29 = {};
SPROUT_STATIC_CONSTEXPR sprout::placeholder<30> _30 = {};
} // anonymous-namespace
} // namespace placeholders
using sprout::placeholders::_1;

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::address_of_t address_of_{};
SPROUT_STATIC_CONSTEXPR sprout::address_of_t address_of_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::assign_t assign_{};
SPROUT_STATIC_CONSTEXPR sprout::assign_t assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::bit_and_t bit_and_{};
SPROUT_STATIC_CONSTEXPR sprout::bit_and_t bit_and_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::bit_and_assign_t bit_and_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::bit_and_assign_t bit_and_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::bit_not_t bit_not_{};
SPROUT_STATIC_CONSTEXPR sprout::bit_not_t bit_not_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::bit_or_t bit_or_{};
SPROUT_STATIC_CONSTEXPR sprout::bit_or_t bit_or_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::bit_or_assign_t bit_or_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::bit_or_assign_t bit_or_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::bit_xor_t bit_xor_{};
SPROUT_STATIC_CONSTEXPR sprout::bit_xor_t bit_xor_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::bit_xor_assign_t bit_xor_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::bit_xor_assign_t bit_xor_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::call_fun_t call_fun_{};
SPROUT_STATIC_CONSTEXPR sprout::call_fun_t call_fun_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::comma_t comma_{};
SPROUT_STATIC_CONSTEXPR sprout::comma_t comma_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::cond_t cond_{};
SPROUT_STATIC_CONSTEXPR sprout::cond_t cond_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::dereference_t dereference_{};
SPROUT_STATIC_CONSTEXPR sprout::dereference_t dereference_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::divides_t divides_{};
SPROUT_STATIC_CONSTEXPR sprout::divides_t divides_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::divides_assign_t divides_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::divides_assign_t divides_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::equal_to_t equal_to_{};
SPROUT_STATIC_CONSTEXPR sprout::equal_to_t equal_to_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::greater_t greater_{};
SPROUT_STATIC_CONSTEXPR sprout::greater_t greater_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::greater_equal_t greater_equal_{};
SPROUT_STATIC_CONSTEXPR sprout::greater_equal_t greater_equal_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::less_t less_{};
SPROUT_STATIC_CONSTEXPR sprout::less_t less_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::less_equal_t less_equal_{};
SPROUT_STATIC_CONSTEXPR sprout::less_equal_t less_equal_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::logical_and_t logical_and_{};
SPROUT_STATIC_CONSTEXPR sprout::logical_and_t logical_and_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::logical_not_t logical_not_{};
SPROUT_STATIC_CONSTEXPR sprout::logical_not_t logical_not_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::logical_or_t logical_or_{};
SPROUT_STATIC_CONSTEXPR sprout::logical_or_t logical_or_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::mem_ptr_t mem_ptr_{};
SPROUT_STATIC_CONSTEXPR sprout::mem_ptr_t mem_ptr_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::member_t member_{};
SPROUT_STATIC_CONSTEXPR sprout::member_t member_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::minus_t minus_{};
SPROUT_STATIC_CONSTEXPR sprout::minus_t minus_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::minus_assign_t minus_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::minus_assign_t minus_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::modulus_t modulus_{};
SPROUT_STATIC_CONSTEXPR sprout::modulus_t modulus_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::modulus_assign_t modulus_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::modulus_assign_t modulus_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::multiplies_t multiplies_{};
SPROUT_STATIC_CONSTEXPR sprout::multiplies_t multiplies_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::multiplies_assign_t multiplies_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::multiplies_assign_t multiplies_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::negate_t negate_{};
SPROUT_STATIC_CONSTEXPR sprout::negate_t negate_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::not_equal_to_t not_equal_to_{};
SPROUT_STATIC_CONSTEXPR sprout::not_equal_to_t not_equal_to_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::plus_t plus_{};
SPROUT_STATIC_CONSTEXPR sprout::plus_t plus_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::plus_assign_t plus_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::plus_assign_t plus_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::posite_t posite_{};
SPROUT_STATIC_CONSTEXPR sprout::posite_t posite_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::post_dec_t post_dec_{};
SPROUT_STATIC_CONSTEXPR sprout::post_dec_t post_dec_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::post_inc_t post_inc_{};
SPROUT_STATIC_CONSTEXPR sprout::post_inc_t post_inc_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::pre_dec_t pre_dec_{};
SPROUT_STATIC_CONSTEXPR sprout::pre_dec_t pre_dec_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::pre_inc_t pre_inc_{};
SPROUT_STATIC_CONSTEXPR sprout::pre_inc_t pre_inc_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::shift_left_t shift_left_{};
SPROUT_STATIC_CONSTEXPR sprout::shift_left_t shift_left_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::shift_left_assign_t shift_left_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::shift_left_assign_t shift_left_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::shift_right_t shift_right_{};
SPROUT_STATIC_CONSTEXPR sprout::shift_right_t shift_right_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::shift_right_assign_t shift_right_assign_{};
SPROUT_STATIC_CONSTEXPR sprout::shift_right_assign_t shift_right_assign_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -21,7 +21,7 @@ namespace sprout {
}
};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::subscript_t subscript_{};
SPROUT_STATIC_CONSTEXPR sprout::subscript_t subscript_ = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -137,12 +137,13 @@ namespace sprout {
typedef T type;
private:
T* t_;
private:
reference_wrapper(T&&) SPROUT_DELETED_FUNCTION_DECL
public:
// construct/copy/destroy
SPROUT_CONSTEXPR reference_wrapper(T& t) SPROUT_NOEXCEPT
: t_(&t)
{}
reference_wrapper(T&&) = delete;
reference_wrapper(reference_wrapper<T> const&) SPROUT_NOEXCEPT = default;
// assignment
reference_wrapper& operator=(reference_wrapper<T> const&) SPROUT_NOEXCEPT = default;
@ -179,9 +180,9 @@ namespace sprout {
return sprout::reference_wrapper<T const>(t);
}
template<typename T>
void ref(T const&&) = delete;
void ref(T const&&) SPROUT_DELETED_FUNCTION_DECL
template<typename T>
void cref(T const&&) = delete;
void cref(T const&&) SPROUT_DELETED_FUNCTION_DECL
template<typename T>
inline SPROUT_CONSTEXPR sprout::reference_wrapper<T>
ref(sprout::reference_wrapper<T> t) SPROUT_NOEXCEPT {

View file

@ -148,14 +148,14 @@ namespace sprout {
SPROUT_STATIC_CONSTEXPR sprout::io::flags::boolean_flag<sprout::io::flags::showpos> showpos = true;
SPROUT_STATIC_CONSTEXPR sprout::io::flags::boolean_flag<sprout::io::flags::uppercase> uppercase = true;
SPROUT_STATIC_CONSTEXPR sprout::io::flags::boolean_flag<sprout::io::flags::skipws> skipws = true;
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::right, sprout::io::flags::adjustfield> right{};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::left, sprout::io::flags::adjustfield> left{};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::internal, sprout::io::flags::adjustfield> internal{};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::dec, sprout::io::flags::basefield> dec{};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::hex, sprout::io::flags::basefield> hex{};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::oct, sprout::io::flags::basefield> oct{};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::fixed, sprout::io::flags::floatfield> fixed{};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::scientific, sprout::io::flags::floatfield> scientific{};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::right, sprout::io::flags::adjustfield> right = {};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::left, sprout::io::flags::adjustfield> left = {};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::internal, sprout::io::flags::adjustfield> internal = {};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::dec, sprout::io::flags::basefield> dec = {};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::hex, sprout::io::flags::basefield> hex = {};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::oct, sprout::io::flags::basefield> oct = {};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::fixed, sprout::io::flags::floatfield> fixed = {};
SPROUT_STATIC_CONSTEXPR sprout::io::flags::field_flag<sprout::io::flags::scientific, sprout::io::flags::floatfield> scientific = {};
//
// precision
@ -520,7 +520,9 @@ namespace sprout {
//
// root
//
SPROUT_STATIC_CONSTEXPR sprout::io::root_t root{};
namespace {
SPROUT_STATIC_CONSTEXPR sprout::io::root_t root = {};
} // anonymous-namespace
template<typename Left, typename Right, typename T>
inline SPROUT_CONSTEXPR auto

View file

@ -27,6 +27,7 @@ namespace sprout {
get_default_indeterminate_name<wchar_t>() {
return L"indeterminate";
}
#ifndef SPROUT_NO_UNICODE_LITERALS
template<>
inline std::basic_string<char16_t>
get_default_indeterminate_name<char16_t>() {
@ -37,6 +38,7 @@ namespace sprout {
get_default_indeterminate_name<char32_t>() {
return U"indeterminate";
}
#endif
//
// indeterminate_name

View file

@ -10,7 +10,7 @@ namespace sprout {
//
struct none_t {};
namespace {
SPROUT_STATIC_CONSTEXPR none_t none{};
SPROUT_STATIC_CONSTEXPR none_t none = {};
} // anonymous-namespace
} // namespace sprout

View file

@ -209,7 +209,7 @@ namespace sprout {
;
}
private:
const_mod() = delete;
const_mod() SPROUT_DELETED_FUNCTION_DECL
};
} // namespace detail
} // namespace random

Some files were not shown because too many files have changed in this diff Show more