mirror of
https://github.com/boostorg/iterator.git
synced 2025-06-29 14:01:01 +02:00
Compare commits
31 Commits
svn-branch
...
boost-1.40
Author | SHA1 | Date | |
---|---|---|---|
2dbdb38670 | |||
25d4d34ebe | |||
ea26e9f109 | |||
264c186eac | |||
2ece3ac5c2 | |||
78effefadb | |||
37c46f7da5 | |||
6d0f901b2e | |||
db0e0b7b91 | |||
23d53055f9 | |||
ff73538b5b | |||
30685528c7 | |||
c849f35965 | |||
aa483f4961 | |||
93c010eb51 | |||
0dc017b1a8 | |||
92c92bbbf8 | |||
f51591cb04 | |||
624131ce46 | |||
47da2546f9 | |||
8a53abc1e8 | |||
b258a435cc | |||
43e4f1a766 | |||
02d22c12ae | |||
70ef2f0e81 | |||
b7283c93c6 | |||
5184d64b80 | |||
f482354ffd | |||
7a2b9d66a9 | |||
d79112ee5a | |||
4a5e8f175a |
30
CMakeLists.txt
Normal file
30
CMakeLists.txt
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#
|
||||||
|
# Copyright Troy D. Straszheim
|
||||||
|
#
|
||||||
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
|
# See http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
#
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# This file was automatically generated from the original CMakeLists.txt file
|
||||||
|
# Add a variable to hold the headers for the library
|
||||||
|
set (lib_headers
|
||||||
|
iterator.hpp
|
||||||
|
iterator
|
||||||
|
)
|
||||||
|
|
||||||
|
# Add a library target to the build system
|
||||||
|
boost_library_project(
|
||||||
|
iterator
|
||||||
|
# SRCDIRS
|
||||||
|
TESTDIRS test
|
||||||
|
HEADERS ${lib_headers}
|
||||||
|
# DOCDIRS
|
||||||
|
DESCRIPTION "A system of concepts which extend the C++ standard iterator requirementsand a framework of components for building iterators based on these extended concepts and includes several useful iterator adaptors."
|
||||||
|
MODULARIZED
|
||||||
|
AUTHORS "David Abrahams <dave -at- boostpro.com>"
|
||||||
|
"Jeremy Siek <jeremy.siek -at- gmail.com>"
|
||||||
|
"Thomas Witt <witt - at - acm.org>"
|
||||||
|
# MAINTAINERS
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -16,5 +16,7 @@ boostbook standalone
|
|||||||
<xsl:param>toc.max.depth=3
|
<xsl:param>toc.max.depth=3
|
||||||
<xsl:param>toc.section.depth=3
|
<xsl:param>toc.section.depth=3
|
||||||
<xsl:param>chunk.section.depth=4
|
<xsl:param>chunk.section.depth=4
|
||||||
|
<format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/libs/iterator/doc
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \
|
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x531)) \
|
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x5A0)) \
|
||||||
|| (BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, <= 700) && defined(_MSC_VER)) \
|
|| (BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, <= 700) && defined(_MSC_VER)) \
|
||||||
|| BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042)) \
|
|| BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042)) \
|
||||||
|| BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x590))
|
|| BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x590))
|
||||||
|
@ -110,7 +110,7 @@ namespace boost
|
|||||||
private:
|
private:
|
||||||
typename super_t::reference dereference() const
|
typename super_t::reference dereference() const
|
||||||
{
|
{
|
||||||
# if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
|
# if BOOST_WORKAROUND(__BORLANDC__, < 0x5A0 )
|
||||||
return const_cast<super_t::reference>(**this->base());
|
return const_cast<super_t::reference>(**this->base());
|
||||||
# else
|
# else
|
||||||
return **this->base();
|
return **this->base();
|
||||||
|
@ -24,6 +24,11 @@
|
|||||||
|
|
||||||
#ifdef BOOST_ITERATOR_REF_CONSTNESS_KILLS_WRITABILITY
|
#ifdef BOOST_ITERATOR_REF_CONSTNESS_KILLS_WRITABILITY
|
||||||
# include <boost/type_traits/remove_reference.hpp>
|
# include <boost/type_traits/remove_reference.hpp>
|
||||||
|
|
||||||
|
# if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
|
||||||
|
# include <boost/type_traits/add_reference.hpp>
|
||||||
|
# endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# include <boost/type_traits/add_reference.hpp>
|
# include <boost/type_traits/add_reference.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
@ -470,8 +470,7 @@ namespace boost
|
|||||||
//
|
//
|
||||||
class iterator_core_access
|
class iterator_core_access
|
||||||
{
|
{
|
||||||
# if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) \
|
# if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS)
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
|
|
||||||
// Tasteless as this may seem, making all members public allows member templates
|
// Tasteless as this may seem, making all members public allows member templates
|
||||||
// to work in the absence of member template friends.
|
// to work in the absence of member template friends.
|
||||||
public:
|
public:
|
||||||
|
1
module.cmake
Normal file
1
module.cmake
Normal file
@ -0,0 +1 @@
|
|||||||
|
boost_module(iterator DEPENDS mpl type_traits function concept_check)
|
39
test/CMakeLists.txt
Normal file
39
test/CMakeLists.txt
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
#
|
||||||
|
# Copyright Troy D. Straszheim
|
||||||
|
#
|
||||||
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
|
# See http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
#
|
||||||
|
boost_additional_test_dependencies(iterator BOOST_DEPENDS test tuple smart_ptr)
|
||||||
|
|
||||||
|
# These first two tests will run last, and are expected to fail
|
||||||
|
# for many less-capable compilers.
|
||||||
|
|
||||||
|
boost_test_compile_fail(interoperable_fail)
|
||||||
|
# test uses expected success, so that we catch unrelated
|
||||||
|
# compilation problems.
|
||||||
|
boost_test_run(is_convertible_fail)
|
||||||
|
boost_test_run(zip_iterator_test)
|
||||||
|
|
||||||
|
# These tests should work for just about everything.
|
||||||
|
boost_test_compile(is_lvalue_iterator)
|
||||||
|
boost_test_compile(is_readable_iterator)
|
||||||
|
boost_test_compile(pointee)
|
||||||
|
|
||||||
|
boost_test_run(unit_tests)
|
||||||
|
boost_test_run(concept_tests)
|
||||||
|
boost_test_run(iterator_adaptor_cc)
|
||||||
|
boost_test_run(iterator_adaptor_test)
|
||||||
|
boost_test_compile(iterator_archetype_cc)
|
||||||
|
boost_test_compile_fail(iter_archetype_default_ctor)
|
||||||
|
boost_test_compile_fail(lvalue_concept_fail)
|
||||||
|
boost_test_run(transform_iterator_test)
|
||||||
|
boost_test_run(indirect_iterator_test)
|
||||||
|
boost_test_compile(indirect_iter_member_types)
|
||||||
|
boost_test_run(filter_iterator_test)
|
||||||
|
boost_test_run(iterator_facade)
|
||||||
|
boost_test_run(reverse_iterator_test)
|
||||||
|
boost_test_run(counting_iterator_test)
|
||||||
|
boost_test_run(interoperable)
|
||||||
|
boost_test_run(iterator_traits_test)
|
||||||
|
boost_test_run(permutation_iterator_test)
|
Reference in New Issue
Block a user