diff options
author | Jason Merrill <jason@redhat.com> | 2012-11-10 12:27:22 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2012-11-10 12:27:22 -0500 |
commit | 734f50238f863ae90d2e8caa2323aaa02380ff48 (patch) | |
tree | d9b336f73d8705f567b8e2871708f2dca7cadb44 /libstdc++-v3/include/ext | |
parent | 3467ad5ce6f6e456699a44d563a7ab0bf576903b (diff) | |
download | gcc-734f50238f863ae90d2e8caa2323aaa02380ff48.zip gcc-734f50238f863ae90d2e8caa2323aaa02380ff48.tar.gz gcc-734f50238f863ae90d2e8caa2323aaa02380ff48.tar.bz2 |
* many: Replace uses of __GXX_EXPERIMENTAL_CXX0X__ with __cplusplus.
From-SVN: r193392
Diffstat (limited to 'libstdc++-v3/include/ext')
-rw-r--r-- | libstdc++-v3/include/ext/algorithm | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/alloc_traits.h | 8 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/array_allocator.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/bitmap_allocator.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/extptr_allocator.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/malloc_allocator.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/mt_allocator.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/new_allocator.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/numeric | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/pb_ds/detail/type_utils.hpp | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/pointer.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/pool_allocator.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/random | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/rc_string_base.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/sso_string_base.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/throw_allocator.h | 22 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/vstring.h | 58 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/vstring_fwd.h | 2 |
18 files changed, 65 insertions, 65 deletions
diff --git a/libstdc++-v3/include/ext/algorithm b/libstdc++-v3/include/ext/algorithm index e9a48db..0713416 100644 --- a/libstdc++-v3/include/ext/algorithm +++ b/libstdc++-v3/include/ext/algorithm @@ -427,7 +427,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __out_last - __out_first); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L using std::is_heap; #else /** @@ -471,7 +471,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L using std::is_sorted; #else // is_sorted, a predicated testing whether a range is sorted in @@ -529,7 +529,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return false; return true; } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 /** * @brief Find the median of three values. diff --git a/libstdc++-v3/include/ext/alloc_traits.h b/libstdc++-v3/include/ext/alloc_traits.h index b66f818..3ae04ac 100644 --- a/libstdc++-v3/include/ext/alloc_traits.h +++ b/libstdc++-v3/include/ext/alloc_traits.h @@ -31,7 +31,7 @@ #pragma GCC system_header -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L # include <bits/alloc_traits.h> #else # include <bits/allocator.h> // for __alloc_swap @@ -48,7 +48,7 @@ namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Alloc> struct __allocator_always_compares_equal { static const bool value = false; }; @@ -107,12 +107,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION */ template<typename _Alloc> struct __alloc_traits -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L : std::allocator_traits<_Alloc> #endif { typedef _Alloc allocator_type; -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L typedef std::allocator_traits<_Alloc> _Base_type; typedef typename _Base_type::value_type value_type; typedef typename _Base_type::pointer pointer; diff --git a/libstdc++-v3/include/ext/array_allocator.h b/libstdc++-v3/include/ext/array_allocator.h index 2c9666a..47f52b5 100644 --- a/libstdc++-v3/include/ext/array_allocator.h +++ b/libstdc++-v3/include/ext/array_allocator.h @@ -74,7 +74,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION max_size() const _GLIBCXX_USE_NOEXCEPT { return size_t(-1) / sizeof(_Tp); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up, typename... _Args> void construct(_Up* __p, _Args&&... __args) diff --git a/libstdc++-v3/include/ext/bitmap_allocator.h b/libstdc++-v3/include/ext/bitmap_allocator.h index cb6fc38..9e81561 100644 --- a/libstdc++-v3/include/ext/bitmap_allocator.h +++ b/libstdc++-v3/include/ext/bitmap_allocator.h @@ -1050,7 +1050,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION max_size() const _GLIBCXX_USE_NOEXCEPT { return size_type(-1) / sizeof(value_type); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up, typename... _Args> void construct(_Up* __p, _Args&&... __args) diff --git a/libstdc++-v3/include/ext/extptr_allocator.h b/libstdc++-v3/include/ext/extptr_allocator.h index 21b1282..1166831 100644 --- a/libstdc++-v3/include/ext/extptr_allocator.h +++ b/libstdc++-v3/include/ext/extptr_allocator.h @@ -101,7 +101,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION size_type max_size() const _GLIBCXX_USE_NOEXCEPT { return __numeric_traits<size_type>::__max / sizeof(_Tp); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up, typename... _Args> void construct(_Up* __p, _Args&&... __args) diff --git a/libstdc++-v3/include/ext/malloc_allocator.h b/libstdc++-v3/include/ext/malloc_allocator.h index 4900723..c190184 100644 --- a/libstdc++-v3/include/ext/malloc_allocator.h +++ b/libstdc++-v3/include/ext/malloc_allocator.h @@ -108,7 +108,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION max_size() const _GLIBCXX_USE_NOEXCEPT { return size_t(-1) / sizeof(_Tp); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up, typename... _Args> void construct(_Up* __p, _Args&&... __args) diff --git a/libstdc++-v3/include/ext/mt_allocator.h b/libstdc++-v3/include/ext/mt_allocator.h index 069476b..1ce695a 100644 --- a/libstdc++-v3/include/ext/mt_allocator.h +++ b/libstdc++-v3/include/ext/mt_allocator.h @@ -588,7 +588,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION max_size() const _GLIBCXX_USE_NOEXCEPT { return size_t(-1) / sizeof(_Tp); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up, typename... _Args> void construct(_Up* __p, _Args&&... __args) diff --git a/libstdc++-v3/include/ext/new_allocator.h b/libstdc++-v3/include/ext/new_allocator.h index 1e4069d..0e8add1 100644 --- a/libstdc++-v3/include/ext/new_allocator.h +++ b/libstdc++-v3/include/ext/new_allocator.h @@ -105,7 +105,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION max_size() const _GLIBCXX_USE_NOEXCEPT { return size_t(-1) / sizeof(_Tp); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up, typename... _Args> void construct(_Up* __p, _Args&&... __args) diff --git a/libstdc++-v3/include/ext/numeric b/libstdc++-v3/include/ext/numeric index b389177..d869302 100644 --- a/libstdc++-v3/include/ext/numeric +++ b/libstdc++-v3/include/ext/numeric @@ -123,7 +123,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION power(_Tp __x, _Integer __n) { return __power(__x, __n); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L using std::iota; #else /** @@ -144,7 +144,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION while (__first != __last) *__first++ = __value++; } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 _GLIBCXX_END_NAMESPACE_VERSION } // namespace diff --git a/libstdc++-v3/include/ext/pb_ds/detail/type_utils.hpp b/libstdc++-v3/include/ext/pb_ds/detail/type_utils.hpp index 7989985..1e9106c 100644 --- a/libstdc++-v3/include/ext/pb_ds/detail/type_utils.hpp +++ b/libstdc++-v3/include/ext/pb_ds/detail/type_utils.hpp @@ -132,7 +132,7 @@ namespace __gnu_pbds }; // Use C++0x's static_assert if possible. -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L #define PB_DS_STATIC_ASSERT(UNIQUE, E) static_assert(E, #UNIQUE) #else template<bool> diff --git a/libstdc++-v3/include/ext/pointer.h b/libstdc++-v3/include/ext/pointer.h index 8b33740..5592a77 100644 --- a/libstdc++-v3/include/ext/pointer.h +++ b/libstdc++-v3/include/ext/pointer.h @@ -42,7 +42,7 @@ #include <bits/stl_iterator_base_types.h> #include <ext/cast.h> #include <ext/type_traits.h> -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L # include <bits/ptr_traits.h> #endif @@ -562,7 +562,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } // namespace -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION diff --git a/libstdc++-v3/include/ext/pool_allocator.h b/libstdc++-v3/include/ext/pool_allocator.h index 03d167c..bb340ab 100644 --- a/libstdc++-v3/include/ext/pool_allocator.h +++ b/libstdc++-v3/include/ext/pool_allocator.h @@ -161,7 +161,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION max_size() const _GLIBCXX_USE_NOEXCEPT { return size_t(-1) / sizeof(_Tp); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up, typename... _Args> void construct(_Up* __p, _Args&&... __args) diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random index 79ee599..1ab58f6 100644 --- a/libstdc++-v3/include/ext/random +++ b/libstdc++-v3/include/ext/random @@ -31,7 +31,7 @@ #pragma GCC system_header -#ifndef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus < 201103L # include <bits/c++0x_warning.h> #else @@ -2330,6 +2330,6 @@ _GLIBCXX_END_NAMESPACE_VERSION #endif // _GLIBCXX_USE_C99_STDINT_TR1 -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 #endif // _EXT_RANDOM diff --git a/libstdc++-v3/include/ext/rc_string_base.h b/libstdc++-v3/include/ext/rc_string_base.h index afd4d9e..0145ccc 100644 --- a/libstdc++-v3/include/ext/rc_string_base.h +++ b/libstdc++-v3/include/ext/rc_string_base.h @@ -314,7 +314,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __rc_string_base(const __rc_string_base& __rcs); -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L __rc_string_base(__rc_string_base&& __rcs) : _M_dataplus(__rcs._M_dataplus) { __rcs._M_data(_S_empty_rep._M_refcopy()); } diff --git a/libstdc++-v3/include/ext/sso_string_base.h b/libstdc++-v3/include/ext/sso_string_base.h index ccaf419..bfc6902 100644 --- a/libstdc++-v3/include/ext/sso_string_base.h +++ b/libstdc++-v3/include/ext/sso_string_base.h @@ -183,7 +183,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __sso_string_base(const __sso_string_base& __rcs); -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L __sso_string_base(__sso_string_base&& __rcs); #endif @@ -344,7 +344,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : _M_dataplus(__rcs._M_get_allocator(), _M_local_data) { _M_construct(__rcs._M_data(), __rcs._M_data() + __rcs._M_length()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _CharT, typename _Traits, typename _Alloc> __sso_string_base<_CharT, _Traits, _Alloc>:: __sso_string_base(__sso_string_base&& __rcs) diff --git a/libstdc++-v3/include/ext/throw_allocator.h b/libstdc++-v3/include/ext/throw_allocator.h index 0dbd351..c525b48 100644 --- a/libstdc++-v3/include/ext/throw_allocator.h +++ b/libstdc++-v3/include/ext/throw_allocator.h @@ -55,7 +55,7 @@ #include <utility> #include <bits/functexcept.h> #include <bits/move.h> -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L # include <functional> # include <random> #else @@ -385,7 +385,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { engine().seed(__s); } private: -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L typedef std::uniform_real_distribution<double> distribution_type; typedef std::mt19937 engine_type; #else @@ -396,7 +396,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION static double generate() { -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L const distribution_type distribution(0, 1); static auto generator = std::bind(distribution, engine()); #else @@ -459,7 +459,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION throw_value_base(const throw_value_base& __v) : _M_i(__v._M_i) { throw_conditionally(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L // Shall not throw. throw_value_base(throw_value_base&&) = default; #endif @@ -476,7 +476,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L // Shall not throw. throw_value_base& operator=(throw_value_base&&) = default; @@ -571,7 +571,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION throw_value_limit(const throw_value_limit& __other) : base_type(__other._M_i) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L throw_value_limit(throw_value_limit&&) = default; #endif @@ -585,7 +585,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L throw_value_limit& operator=(throw_value_limit&&) = default; #endif @@ -602,7 +602,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION throw_value_random(const throw_value_random& __other) : base_type(__other._M_i) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L throw_value_random(throw_value_random&&) = default; #endif @@ -616,7 +616,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L throw_value_random& operator=(throw_value_random&&) = default; #endif @@ -675,7 +675,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return a; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up, typename... _Args> void construct(_Up* __p, _Args&&... __args) @@ -771,7 +771,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } // namespace -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L # include <bits/functional_hash.h> diff --git a/libstdc++-v3/include/ext/vstring.h b/libstdc++-v3/include/ext/vstring.h index 48e3d46..7e2612e 100644 --- a/libstdc++-v3/include/ext/vstring.h +++ b/libstdc++-v3/include/ext/vstring.h @@ -32,7 +32,7 @@ #pragma GCC system_header -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L #include <initializer_list> #endif @@ -150,7 +150,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __versa_string(const __versa_string& __str) : __vstring_base(__str) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief String move constructor. * @param __str Source string. @@ -238,7 +238,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * @param __end End of range. * @param __a Allocator to use (default is default allocator). */ -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -261,7 +261,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION operator=(const __versa_string& __str) { return this->assign(__str); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief String move assignment operator. * @param __str Source string. @@ -386,7 +386,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION rend() const _GLIBCXX_NOEXCEPT { return const_reverse_iterator(this->begin()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * Returns a read-only (constant) iterator that points to the first * character in the %string. @@ -468,7 +468,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION resize(size_type __n) { this->resize(__n, _CharT()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /// A non-binding request to reduce capacity() to size(). void shrink_to_fit() @@ -604,7 +604,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return this->_M_data()[__n]; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * Returns a read/write reference to the data at the first * element of the %string. @@ -669,7 +669,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief Append an initializer_list of characters. * @param __l The initializer_list of characters to be appended. @@ -678,7 +678,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __versa_string& operator+=(std::initializer_list<_CharT> __l) { return this->append(__l.begin(), __l.end()); } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 /** * @brief Append a string to this string. @@ -748,7 +748,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION append(size_type __n, _CharT __c) { return _M_replace_aux(this->size(), size_type(0), __n, __c); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief Append an initializer_list of characters. * @param __l The initializer_list of characters to append. @@ -757,7 +757,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __versa_string& append(std::initializer_list<_CharT> __l) { return this->append(__l.begin(), __l.end()); } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 /** * @brief Append a range of characters. @@ -767,7 +767,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * * Appends characters in the range [first,last) to this string. */ -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -803,7 +803,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief Set value to contents of another string. * @param __str Source string to use. @@ -818,7 +818,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION this->swap(__str); return *this; } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 /** * @brief Set value to a substring of a string. @@ -896,7 +896,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * Sets value of string to characters in the range * [first,last). */ -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -906,7 +906,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION assign(_InputIterator __first, _InputIterator __last) { return this->replace(_M_ibegin(), _M_iend(), __first, __last); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief Set value to an initializer_list of characters. * @param __l The initializer_list of characters to assign. @@ -915,7 +915,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __versa_string& assign(std::initializer_list<_CharT> __l) { return this->assign(__l.begin(), __l.end()); } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 /** * @brief Insert multiple characters. @@ -946,7 +946,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * thrown. The value of the string doesn't change if an error * is thrown. */ -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -956,7 +956,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION insert(iterator __p, _InputIterator __beg, _InputIterator __end) { this->replace(__p, __p, __beg, __end); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief Insert an initializer_list of characters. * @param __p Iterator referencing location in string to insert at. @@ -966,7 +966,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION void insert(iterator __p, std::initializer_list<_CharT> __l) { this->insert(__p, __l.begin(), __l.end()); } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 /** * @brief Insert value of a string. @@ -1160,7 +1160,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return iterator(this->_M_data() + __pos); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief Remove the last character. * @@ -1169,7 +1169,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION void pop_back() { this->_M_erase(size()-1, 1); } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 /** * @brief Replace characters with value from another string. @@ -1387,7 +1387,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * of result exceeds max_size(), length_error is thrown. The * value of the string doesn't change if an error is thrown. */ -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> __versa_string& @@ -1458,7 +1458,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __k1.base(), __k2 - __k1); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief Replace range of characters with initializer_list. * @param __i1 Iterator referencing start of range to replace. @@ -1475,7 +1475,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __versa_string& replace(iterator __i1, iterator __i2, std::initializer_list<_CharT> __l) { return this->replace(__i1, __i2, __l.begin(), __l.end()); } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 private: template<class _Integer> @@ -2159,7 +2159,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION operator+(const __versa_string<_CharT, _Traits, _Alloc, _Base>& __lhs, _CharT __rhs); -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _CharT, typename _Traits, typename _Alloc, template <typename, typename, typename> class _Base> inline __versa_string<_CharT, _Traits, _Alloc, _Base> @@ -2572,7 +2572,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } // namespace -#if (defined(__GXX_EXPERIMENTAL_CXX0X__) && defined(_GLIBCXX_USE_C99)) +#if ((__cplusplus >= 201103L) && defined(_GLIBCXX_USE_C99)) #include <ext/string_conversions.h> @@ -2790,7 +2790,7 @@ _GLIBCXX_END_NAMESPACE_VERSION #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L #include <bits/functional_hash.h> @@ -2848,7 +2848,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } // namespace -#endif /* __GXX_EXPERIMENTAL_CXX0X__ */ +#endif // C++11 #include "vstring.tcc" diff --git a/libstdc++-v3/include/ext/vstring_fwd.h b/libstdc++-v3/include/ext/vstring_fwd.h index ce8cf53..56e3855 100644 --- a/libstdc++-v3/include/ext/vstring_fwd.h +++ b/libstdc++-v3/include/ext/vstring_fwd.h @@ -67,7 +67,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION std::allocator<wchar_t>, __rc_string_base> __wrc_string; #endif -#if (defined(__GXX_EXPERIMENTAL_CXX0X__) \ +#if ((__cplusplus >= 201103L) \ && defined(_GLIBCXX_USE_C99_STDINT_TR1)) typedef __versa_string<char16_t> __u16vstring; |