From b4b13ae470654e51f272342b18b06866d7510246 Mon Sep 17 00:00:00 2001
From: Daniel James
Date: Thu, 7 Feb 2008 18:54:14 +0000
Subject: [PATCH] Merge.
[SVN r43162]
---
doc/Jamfile.v2 | 10 +++++++
doc/boost_range.html | 8 +++++-
doc/example.cpp | 10 +++++++
doc/examples.html | 9 ++++++-
doc/faq.html | 11 ++++++--
doc/headers.html | 9 ++++++-
doc/history_ack.html | 9 ++++++-
doc/intro.html | 9 ++++++-
doc/portability.html | 11 ++++++--
doc/range.html | 36 +++++++-------------------
doc/style.css | 11 ++++++++
doc/style.html | 8 +++++-
doc/utility_class.html | 15 ++++++++---
include/boost/range/iterator_range.hpp | 13 +++++++---
include/boost/range/sub_range.hpp | 12 ++++++---
test/TODO | 1 -
test/compat1.cpp | 0
test/partial_workaround.cpp | 8 +++++-
18 files changed, 139 insertions(+), 51 deletions(-)
delete mode 100644 test/TODO
delete mode 100755 test/compat1.cpp
diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2
index 0fafdd7..bfe0908 100644
--- a/doc/Jamfile.v2
+++ b/doc/Jamfile.v2
@@ -1,3 +1,13 @@
+#// Boost.Range library
+#//
+#// Copyright Thorsten Ottosen 2003-2008. Use, modification and
+#// distribution is subject to 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)
+#//
+#// For more information, see http://www.boost.org/libs/range/
+#//
+
use-project boost : $(BOOST_ROOT) ;
diff --git a/doc/boost_range.html b/doc/boost_range.html
index ed84e1a..465bd18 100644
--- a/doc/boost_range.html
+++ b/doc/boost_range.html
@@ -745,7 +745,13 @@ class=identifier>T&
- (C) Copyright Thorsten Ottosen 2003-2007
+ © Copyright Thorsten Ottosen 2008.
+
+
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)
diff --git a/doc/example.cpp b/doc/example.cpp
index afe448f..d3dec7c 100644
--- a/doc/example.cpp
+++ b/doc/example.cpp
@@ -1,3 +1,13 @@
+// Boost.Range library
+//
+// Copyright Thorsten Ottosen 2003-2008. Use, modification and
+// distribution is subject to 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)
+//
+// For more information, see http://www.boost.org/libs/range/
+//
+
#include
#include // for std::iterator_traits, std::distance()
diff --git a/doc/examples.html b/doc/examples.html
index 0ea235d..0d24509 100755
--- a/doc/examples.html
+++ b/doc/examples.html
@@ -41,9 +41,16 @@
array.cpp
+
- (C) Copyright Thorsten Ottosen 2003-2004
+ © Copyright Thorsten Ottosen 2008.
+
+
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)
diff --git a/doc/faq.html b/doc/faq.html
index 34304ef..244df80 100755
--- a/doc/faq.html
+++ b/doc/faq.html
@@ -114,9 +114,16 @@ Cool indeed!
-
+
- (C) Copyright Thorsten Ottosen 2003-2004
+ © Copyright Thorsten Ottosen 2008.
+
+
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy
+ at www.boost.org/LICENSE_1_0.txt)
diff --git a/doc/headers.html b/doc/headers.html
index 69987ce..7628591 100755
--- a/doc/headers.html
+++ b/doc/headers.html
@@ -173,7 +173,14 @@
- (C) Copyright Thorsten Ottosen 2003-2007
+ © Copyright Thorsten Ottosen 2008.
+
+
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy
+ at www.boost.org/LICENSE_1_0.txt)
diff --git a/doc/history_ack.html b/doc/history_ack.html
index 289bfa8..3191dd0 100755
--- a/doc/history_ack.html
+++ b/doc/history_ack.html
@@ -61,7 +61,14 @@ C++ standard:
- (C) Copyright Thorsten Ottosen 2003-2006
+ © Copyright Thorsten Ottosen 2008.
+
+
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy
+ at www.boost.org/LICENSE_1_0.txt)
diff --git a/doc/intro.html b/doc/intro.html
index 4ed653b..9f41c72 100755
--- a/doc/intro.html
+++ b/doc/intro.html
@@ -135,7 +135,14 @@ Notice that we have to
- (C) Copyright Thorsten Ottosen 2003-2007
+ © Copyright Thorsten Ottosen 2008.
+
+
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy
+ at www.boost.org/LICENSE_1_0.txt)
diff --git a/doc/portability.html b/doc/portability.html
index 506d5b2..9e63978 100755
--- a/doc/portability.html
+++ b/doc/portability.html
@@ -73,11 +73,18 @@ href="http://boost.sourceforge.net/regression-logs/developer/range.html">here
-
+
- (C) Copyright Thorsten Ottosen 2003-2004
+ © Copyright Thorsten Ottosen 2008.
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy
+ at www.boost.org/LICENSE_1_0.txt)
+
>
+
diff --git a/doc/range.html b/doc/range.html
index dfe9345..b140888 100755
--- a/doc/range.html
+++ b/doc/range.html
@@ -352,34 +352,16 @@ href="../../iterator/doc/new-iter-concepts.html#random-access-traversal-iterator
Boost Concept Check library
+
+ © Copyright Thorsten Ottosen 2008.
+
-
-
-
-
- Copyright © 2000 |
- Jeremy Siek
- |
-
- Copyright © 2004-2007 |
- Thorsten Ottosen.
- |
-
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy
+ at www.boost.org/LICENSE_1_0.txt)
+
diff --git a/doc/style.css b/doc/style.css
index 1890b52..ce44c30 100755
--- a/doc/style.css
+++ b/doc/style.css
@@ -1,3 +1,14 @@
+/*
+// Boost.Range library
+//
+// Copyright Thorsten Ottosen 2003-2008. Use, modification and
+// distribution is subject to 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)
+//
+// For more information, see http://www.boost.org/libs/range/
+//
+*/
pre{
BORDER-RIGHT: gray 1pt solid;
PADDING-RIGHT: 2pt;
diff --git a/doc/style.html b/doc/style.html
index 9a5617e..cd82c94 100755
--- a/doc/style.html
+++ b/doc/style.html
@@ -104,9 +104,15 @@
- (C) Copyright Thorsten Ottosen 2003-2004
+ © Copyright Thorsten Ottosen 2008.
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy
+ at www.boost.org/LICENSE_1_0.txt)
+
diff --git a/doc/utility_class.html b/doc/utility_class.html
index c4afe54..ea51503 100644
--- a/doc/utility_class.html
+++ b/doc/utility_class.html
@@ -350,10 +350,17 @@ store the result
-
-
- (C) Copyright Thorsten Ottosen 2003-2007
-
+
+
+ © Copyright Thorsten Ottosen 2008.
+
+
+
+ Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy
+ at www.boost.org/LICENSE_1_0.txt)
+
diff --git a/include/boost/range/iterator_range.hpp b/include/boost/range/iterator_range.hpp
index 31b8ea8..7dcf033 100755
--- a/include/boost/range/iterator_range.hpp
+++ b/include/boost/range/iterator_range.hpp
@@ -11,6 +11,11 @@
#ifndef BOOST_RANGE_ITERATOR_RANGE_HPP
#define BOOST_RANGE_ITERATOR_RANGE_HPP
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500)
+ #pragma warning( push )
+ #pragma warning( disable : 4996 )
+#endif
+
// From boost/dynamic_bitset.hpp; thanks to Matthias Troyer for Cray X1 patch.
#include // Define __STL_CONFIG_H, if appropriate.
#ifndef BOOST_OLD_IOSTREAMS
@@ -38,10 +43,6 @@
#endif // _STLP_NO_IOSTREAMS
#include
-#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
- #pragma warning( disable : 4996 )
-#endif
-
/*! \file
Defines the \c iterator_class and related functions.
\c iterator_range is a simple wrapper of iterator pair idiom. It provides
@@ -639,5 +640,9 @@ namespace boost
#undef BOOST_OLD_IOSTREAMS
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500)
+ #pragma warning( pop )
+#endif
+
#endif
diff --git a/include/boost/range/sub_range.hpp b/include/boost/range/sub_range.hpp
index 35dfb27..d28da93 100755
--- a/include/boost/range/sub_range.hpp
+++ b/include/boost/range/sub_range.hpp
@@ -11,12 +11,12 @@
#ifndef BOOST_RANGE_SUB_RANGE_HPP
#define BOOST_RANGE_SUB_RANGE_HPP
-#include
-
-#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500)
+ #pragma warning( push )
#pragma warning( disable : 4996 )
#endif
+#include
#include
#include
#include
@@ -46,7 +46,7 @@ namespace boost
sub_range() : base()
{ }
-#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500) )
sub_range( const sub_range& r )
: base( static_cast( r ) )
{ }
@@ -163,5 +163,9 @@ namespace boost
} // namespace 'boost'
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500)
+ #pragma warning( pop )
+#endif
+
#endif
diff --git a/test/TODO b/test/TODO
deleted file mode 100644
index 8b13789..0000000
--- a/test/TODO
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/test/compat1.cpp b/test/compat1.cpp
deleted file mode 100755
index e69de29..0000000
diff --git a/test/partial_workaround.cpp b/test/partial_workaround.cpp
index 8ac6f66..76d902f 100755
--- a/test/partial_workaround.cpp
+++ b/test/partial_workaround.cpp
@@ -10,6 +10,8 @@
#include
#include
+#include
+#include
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
# pragma warn -8091 // supress warning in Boost.Test
@@ -30,7 +32,6 @@
#include
#include
-#include
#include
#include
@@ -91,6 +92,11 @@ void check_partial_workaround()
void check_partial_workaround()
{
+ //
+ // test if warnings are generated
+ //
+ std::size_t s = boost::range_detail::array_size( "foo" );
+ BOOST_CHECK_EQUAL( s, 4u );
}
#endif