|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86081 - in trunk/boost: . circular_buffer
From: steveire_at_[hidden]
Date: 2013-09-30 12:03:51
Author: skelly
Date: 2013-09-30 12:03:51 EDT (Mon, 30 Sep 2013)
New Revision: 86081
URL: http://svn.boost.org/trac/boost/changeset/86081
Log:
CircularBuffer: Remove obsolete MSVC version checks.
Text files modified:
trunk/boost/circular_buffer.hpp | 17 ++++-------------
trunk/boost/circular_buffer/base.hpp | 26 --------------------------
trunk/boost/circular_buffer/space_optimized.hpp | 27 ---------------------------
3 files changed, 4 insertions(+), 66 deletions(-)
Modified: trunk/boost/circular_buffer.hpp
==============================================================================
--- trunk/boost/circular_buffer.hpp Mon Sep 30 12:03:34 2013 (r86080)
+++ trunk/boost/circular_buffer.hpp 2013-09-30 12:03:51 EDT (Mon, 30 Sep 2013) (r86081)
@@ -17,6 +17,7 @@
#include <boost/circular_buffer_fwd.hpp>
#include <boost/detail/workaround.hpp>
+#include <boost/static_assert.hpp>
// BOOST_CB_ENABLE_DEBUG: Debug support control.
#if defined(NDEBUG) || defined(BOOST_CB_DISABLE_DEBUG)
@@ -33,29 +34,20 @@
#define BOOST_CB_ASSERT(Expr) ((void)0)
#endif
-// BOOST_CB_STATIC_ASSERT: Compile time assertion.
-#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
- #define BOOST_CB_STATIC_ASSERT(Expr) ((void)0)
-#else
- #include <boost/static_assert.hpp>
- #define BOOST_CB_STATIC_ASSERT(Expr) BOOST_STATIC_ASSERT(Expr)
-#endif
-
// BOOST_CB_IS_CONVERTIBLE: Check if Iterator::value_type is convertible to Type.
-#if BOOST_WORKAROUND(__BORLANDC__, <= 0x0550) || BOOST_WORKAROUND(__MWERKS__, <= 0x2407) || \
- BOOST_WORKAROUND(BOOST_MSVC, < 1300)
+#if BOOST_WORKAROUND(__BORLANDC__, <= 0x0550) || BOOST_WORKAROUND(__MWERKS__, <= 0x2407)
#define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) ((void)0)
#else
#include <boost/detail/iterator.hpp>
#include <boost/type_traits/is_convertible.hpp>
#define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) \
- BOOST_CB_STATIC_ASSERT((is_convertible<typename detail::iterator_traits<Iterator>::value_type, Type>::value))
+ BOOST_STATIC_ASSERT((is_convertible<typename detail::iterator_traits<Iterator>::value_type, Type>::value))
#endif
// BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS:
// Check if the STL provides templated iterator constructors for its containers.
#if defined(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS)
- #define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS BOOST_CB_STATIC_ASSERT(false);
+ #define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS BOOST_STATIC_ASSERT(false);
#else
#define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS ((void)0);
#endif
@@ -67,7 +59,6 @@
#undef BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS
#undef BOOST_CB_IS_CONVERTIBLE
-#undef BOOST_CB_STATIC_ASSERT
#undef BOOST_CB_ASSERT
#undef BOOST_CB_ENABLE_DEBUG
Modified: trunk/boost/circular_buffer/base.hpp
==============================================================================
--- trunk/boost/circular_buffer/base.hpp Mon Sep 30 12:03:34 2013 (r86080)
+++ trunk/boost/circular_buffer/base.hpp 2013-09-30 12:03:51 EDT (Mon, 30 Sep 2013) (r86081)
@@ -1150,25 +1150,6 @@
}
#endif // BOOST_NO_CXX11_RVALUE_REFERENCES
-
-#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
-
- /*! \cond */
- template <class InputIterator>
- circular_buffer(InputIterator first, InputIterator last)
- : m_alloc(allocator_type()) {
- initialize(first, last, is_integral<InputIterator>());
- }
-
- template <class InputIterator>
- circular_buffer(capacity_type capacity, InputIterator first, InputIterator last)
- : m_alloc(allocator_type()) {
- initialize(capacity, first, last, is_integral<InputIterator>());
- }
- /*! \endcond */
-
-#else
-
//! Create a full <code>circular_buffer</code> filled with a copy of the range.
/*!
\pre Valid range <code>[first, last)</code>.<br>
@@ -1221,8 +1202,6 @@
initialize(buffer_capacity, first, last, is_integral<InputIterator>());
}
-#endif // #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
-
//! The destructor.
/*!
Destroys the <code>circular_buffer</code>.
@@ -2737,12 +2716,7 @@
clear();
insert(begin(), first, last);
} else {
-#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
- circular_buffer<value_type, allocator_type> tmp(new_capacity, m_alloc);
- tmp.insert(begin(), first, last);
-#else
circular_buffer<value_type, allocator_type> tmp(new_capacity, first, last, m_alloc);
-#endif
tmp.swap(*this);
}
}
Modified: trunk/boost/circular_buffer/space_optimized.hpp
==============================================================================
--- trunk/boost/circular_buffer/space_optimized.hpp Mon Sep 30 12:03:34 2013 (r86080)
+++ trunk/boost/circular_buffer/space_optimized.hpp 2013-09-30 12:03:51 EDT (Mon, 30 Sep 2013) (r86081)
@@ -416,31 +416,6 @@
: circular_buffer<T, Alloc>(init_capacity(capacity_ctrl, n), n, item, alloc)
, m_capacity_ctrl(capacity_ctrl) {}
-#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
-
- /*! \cond */
- circular_buffer_space_optimized(const circular_buffer_space_optimized<T, Alloc>& cb)
- : circular_buffer<T, Alloc>(cb.begin(), cb.end())
- , m_capacity_ctrl(cb.m_capacity_ctrl) {}
-
- template <class InputIterator>
- circular_buffer_space_optimized(InputIterator first, InputIterator last)
- : circular_buffer<T, Alloc>(first, last)
- , m_capacity_ctrl(circular_buffer<T, Alloc>::capacity()) {}
-
- template <class InputIterator>
- circular_buffer_space_optimized(capacity_type capacity_ctrl, InputIterator first, InputIterator last)
- : circular_buffer<T, Alloc>(
- init_capacity(capacity_ctrl, first, last, is_integral<InputIterator>()),
- first, last)
- , m_capacity_ctrl(capacity_ctrl) {
- reduce_capacity(
- is_same< BOOST_DEDUCED_TYPENAME iterator_category<InputIterator>::type, std::input_iterator_tag >());
- }
- /*! \endcond */
-
-#else
-
//! The copy constructor.
/*!
Creates a copy of the specified <code>circular_buffer_space_optimized</code>.
@@ -537,8 +512,6 @@
is_same< BOOST_DEDUCED_TYPENAME iterator_category<InputIterator>::type, std::input_iterator_tag >());
}
-#endif // #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
-
#if defined(BOOST_CB_NEVER_DEFINED)
// This section will never be compiled - the default destructor will be generated instead.
// Declared only for documentation purpose.
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk