diff options
Diffstat (limited to 'boost/multi_index/detail/unbounded.hpp')
-rw-r--r-- | boost/multi_index/detail/unbounded.hpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/boost/multi_index/detail/unbounded.hpp b/boost/multi_index/detail/unbounded.hpp index 40c303445e..dc09be1770 100644 --- a/boost/multi_index/detail/unbounded.hpp +++ b/boost/multi_index/detail/unbounded.hpp @@ -1,4 +1,4 @@ -/* Copyright 2003-2008 Joaquin M Lopez Munoz. +/* Copyright 2003-2013 Joaquin M Lopez Munoz. * 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) @@ -9,7 +9,7 @@ #ifndef BOOST_MULTI_INDEX_DETAIL_UNBOUNDED_HPP #define BOOST_MULTI_INDEX_DETAIL_UNBOUNDED_HPP -#if defined(_MSC_VER)&&(_MSC_VER>=1200) +#if defined(_MSC_VER) #pragma once #endif @@ -22,22 +22,6 @@ namespace multi_index{ /* dummy type and variable for use in ordered_index::range() */ -#if BOOST_WORKAROUND(BOOST_MSVC,<1300) -/* The default branch actually works for MSVC 6.0, but seems like - * this implementation of unbounded improves the performance of ordered - * indices! This behavior is hard to explain and probably a test artifact, - * but it does not hurt to have the workaround anyway. - */ - -namespace detail{struct unbounded_type{};} - -namespace{ - -static detail::unbounded_type unbounded_obj=detail::unbounded_type(); -static detail::unbounded_type& unbounded=unbounded_obj; - -} /* unnamed */ -#else /* ODR-abiding technique shown at the example attached to * http://lists.boost.org/Archives/boost/2006/07/108355.php */ @@ -63,7 +47,6 @@ inline detail::unbounded_helper unbounded(detail::unbounded_helper) { return detail::unbounded_helper(); } -#endif /* tags used in the implementation of range */ |