|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59575 - in sandbox/SOC/2009/fusion: boost/fusion/adapted/detail/array boost/fusion/adapted/detail/mpl boost/fusion/adapted/detail/po_array boost/fusion/adapted/detail/struct boost/fusion/adapted/detail/tuple boost/fusion/algorithm/transformation boost/fusion/algorithm/transformation/detail boost/fusion/algorithm/transformation/detail/variadic_templates boost/fusion/container/list boost/fusion/container/vector/detail/pp boost/fusion/sequence/intrinsic boost/fusion/sequence/intrinsic/ext_ boost/fusion/support boost/fusion/support/internal boost/fusion/view/filter_view boost/fusion/view/iterator_range boost/fusion/view/nview boost/fusion/view/nview/detail boost/fusion/view/repetitive_view libs/fusion/test libs/fusion/test/sequence
From: mr.chr.schmidt_at_[hidden]
Date: 2010-02-07 13:09:12
Author: cschmidt
Date: 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
New Revision: 59575
URL: http://svn.boost.org/trac/boost/changeset/59575
Log:
added adapt plain old array testcase
Added:
sandbox/SOC/2009/fusion/libs/fusion/test/sequence/array.cpp (contents, props changed)
sandbox/SOC/2009/fusion/libs/fusion/test/sequence/boost_array.cpp
- copied, changed from r59536, /sandbox/SOC/2009/fusion/libs/fusion/test/sequence/array.cpp
Text files modified:
sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/array/tag_of.hpp | 1 -
sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/mpl/mpl_iterator.hpp | 1 -
sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/end_impl.hpp | 2 +-
sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/size_impl.hpp | 2 +-
sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/tag_of.hpp | 1 -
sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/struct/category_of_impl.hpp | 2 --
sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/tuple/tag_of.hpp | 2 +-
sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/detail/is_in_seq.hpp | 6 ------
sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/detail/variadic_templates/zip.hpp | 4 ----
sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/erase_key.hpp | 3 ---
sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/pop_back.hpp | 3 ---
sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/pop_front.hpp | 3 ---
sandbox/SOC/2009/fusion/boost/fusion/container/list/cons.hpp | 6 ------
sandbox/SOC/2009/fusion/boost/fusion/container/vector/detail/pp/vector_n.hpp | 7 -------
sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/at.hpp | 8 --------
sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/at_key.hpp | 3 ---
sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/back.hpp | 3 ---
sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/ext_/segments.hpp | 3 ---
sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/front.hpp | 3 ---
sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/value_at.hpp | 8 --------
sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/value_at_key.hpp | 3 ---
sandbox/SOC/2009/fusion/boost/fusion/support/category_of.hpp | 4 ----
sandbox/SOC/2009/fusion/boost/fusion/support/internal/assert.hpp | 13 +++++++------
sandbox/SOC/2009/fusion/boost/fusion/view/filter_view/filter_view.hpp | 4 ----
sandbox/SOC/2009/fusion/boost/fusion/view/iterator_range/iterator_range.hpp | 4 ----
sandbox/SOC/2009/fusion/boost/fusion/view/nview/detail/nview_iterator.hpp | 4 ----
sandbox/SOC/2009/fusion/boost/fusion/view/nview/nview.hpp | 3 ---
sandbox/SOC/2009/fusion/boost/fusion/view/repetitive_view/repetitive_view.hpp | 9 ---------
sandbox/SOC/2009/fusion/libs/fusion/test/Jamfile | 1 +
sandbox/SOC/2009/fusion/libs/fusion/test/sequence/boost_array.cpp | 3 ++-
30 files changed, 13 insertions(+), 106 deletions(-)
Modified: sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/array/tag_of.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/array/tag_of.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/array/tag_of.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -9,7 +9,6 @@
#include <boost/config.hpp>
#include <boost/fusion/support/tag_of_fwd.hpp>
-#include <boost/fusion/support/category_of.hpp>
#include <cstddef>
Modified: sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/mpl/mpl_iterator.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/mpl/mpl_iterator.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/mpl/mpl_iterator.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -11,7 +11,6 @@
#include <boost/fusion/iterator/iterator_facade.hpp>
#include <boost/fusion/support/category_of.hpp>
-
#include <boost/mpl/always.hpp>
#include <boost/mpl/apply.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/end_impl.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/end_impl.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/end_impl.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -30,7 +30,7 @@
po_array_iterator_tag
, random_access_traversal_tag
, typename detail::add_lref<Seq>::type
- , extent<seq,rank<seq>::value>::value
+ , extent<seq,rank<seq>::value-1>::value
>
type;
Modified: sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/size_impl.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/size_impl.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/size_impl.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -24,7 +24,7 @@
{
typedef typename detail::remove_reference<Seq>::type seq;
- typedef typename extent<seq,rank<seq>::value>::type type;
+ typedef typename extent<seq,rank<seq>::value-1>::type type;
};
};
}}}
Modified: sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/tag_of.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/tag_of.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/po_array/tag_of.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -9,7 +9,6 @@
#define BOOST_FUSION_ADAPTED_DETAIL_PO_ARRAY_TAG_OF_HPP
#include <boost/fusion/support/tag_of_fwd.hpp>
-#include <boost/fusion/support/category_of.hpp>
#include <cstddef>
namespace boost
Modified: sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/struct/category_of_impl.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/struct/category_of_impl.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/struct/category_of_impl.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -10,8 +10,6 @@
#ifndef BOOST_FUSION_ADAPTED_DETAIL_STRUCT_CATEGORY_OF_IMPL_HPP
#define BOOST_FUSION_ADAPTED_DETAIL_STRUCT_CATEGORY_OF_IMPL_HPP
-#include <boost/fusion/support/category_of.hpp>
-
namespace boost { namespace fusion
{
namespace extension
Modified: sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/tuple/tag_of.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/tuple/tag_of.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/adapted/detail/tuple/tag_of.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -8,7 +8,6 @@
#include <boost/config.hpp>
#include <boost/fusion/support/tag_of_fwd.hpp>
-#include <boost/fusion/support/category_of.hpp>
#include <boost/mpl/tag.hpp>
#ifdef BOOST_FUSION_ADAPTED_STD_TUPLE
@@ -30,6 +29,7 @@
struct boost_tuple_tag;
struct boost_tuple_iterator_tag;
struct fusion_sequence_tag;
+ struct random_access_traversal_tag;
namespace traits
{
Modified: sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/detail/is_in_seq.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/detail/is_in_seq.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/detail/is_in_seq.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -9,12 +9,6 @@
#define BOOST_FUSION_SUPPORT_DETAIL_IS_IN_SEQ_HPP
#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/begin.hpp>
-# include <boost/fusion/sequence/intrinsic/end.hpp>
-# include <boost/fusion/iterator/next.hpp>
-# include <boost/fusion/iterator/next.hpp>
-# include <boost/fusion/iterator/equal_to.hpp>
-
# include <boost/mpl/bool.hpp>
# include <boost/mpl/identity.hpp>
# include <boost/mpl/eval_if.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/detail/variadic_templates/zip.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/detail/variadic_templates/zip.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/detail/variadic_templates/zip.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -14,10 +14,6 @@
#include <boost/fusion/support/internal/ref.hpp>
#include <boost/fusion/support/internal/assert.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/mpl/and.hpp>
-#endif
-
namespace boost { namespace fusion {
namespace result_of
Modified: sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/erase_key.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/erase_key.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/erase_key.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -11,9 +11,6 @@
#include <boost/fusion/algorithm/query/find_key.hpp>
#include <boost/fusion/algorithm/transformation/erase.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/has_key.hpp>
-#endif
#include <boost/fusion/support/internal/assert.hpp>
#include <boost/fusion/support/internal/ref.hpp>
#include <boost/fusion/support/internal/workaround.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/pop_back.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/pop_back.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/pop_back.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -11,9 +11,6 @@
#include <boost/fusion/sequence/intrinsic/begin.hpp>
#include <boost/fusion/sequence/intrinsic/end.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/empty.hpp>
-#endif
#include <boost/fusion/iterator/prior.hpp>
#include <boost/fusion/view/iterator_range/iterator_range.hpp>
#include <boost/fusion/support/internal/ref.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/pop_front.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/pop_front.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/algorithm/transformation/pop_front.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -11,9 +11,6 @@
#include <boost/fusion/sequence/intrinsic/begin.hpp>
#include <boost/fusion/sequence/intrinsic/end.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/empty.hpp>
-#endif
#include <boost/fusion/iterator/next.hpp>
#include <boost/fusion/view/iterator_range/iterator_range.hpp>
#include <boost/fusion/support/internal/ref.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/container/list/cons.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/container/list/cons.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/container/list/cons.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -12,9 +12,6 @@
#include <boost/fusion/sequence/intrinsic/begin.hpp>
#include <boost/fusion/sequence/intrinsic/front.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/empty.hpp>
-#endif
#include <boost/fusion/iterator/next.hpp>
#include <boost/fusion/iterator/deref.hpp>
#include <boost/fusion/support/sequence_base.hpp>
@@ -26,9 +23,6 @@
#include <boost/mpl/int.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/or.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/mpl/equal_to.hpp>
-#endif
#ifdef BOOST_NO_RVALUE_REFERENCES
# include <boost/call_traits.hpp>
#endif
Modified: sandbox/SOC/2009/fusion/boost/fusion/container/vector/detail/pp/vector_n.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/container/vector/detail/pp/vector_n.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/container/vector/detail/pp/vector_n.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -11,10 +11,6 @@
# ifdef BOOST_FUSION_TAGGED_VECTOR
# include <boost/fusion/container/vector/detail/variadic_templates/tagged_impl.hpp>
# endif
-# ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/size.hpp>
-# include <boost/fusion/sequence/intrinsic/empty.hpp>
-# endif
# include <boost/fusion/sequence/intrinsic/front.hpp>
# include <boost/fusion/sequence/intrinsic/begin.hpp>
# include <boost/fusion/iterator/deref.hpp>
@@ -38,9 +34,6 @@
# ifdef BOOST_FUSION_PREFER_MPL
# include <boost/mpl/at.hpp>
# endif
-# ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/mpl/equal_to.hpp>
-# endif
# include <boost/type_traits/is_convertible.hpp>
# include <boost/type_traits/add_const.hpp>
# include <boost/utility/enable_if.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/at.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/at.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/at.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -8,19 +8,11 @@
#ifndef BOOST_FUSION_SEQUENCE_INTRINSIC_AT_HPP
#define BOOST_FUSION_SEQUENCE_INTRINSIC_AT_HPP
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/size.hpp>
-#endif
#include <boost/fusion/support/tag_of.hpp>
#include <boost/fusion/support/internal/ref.hpp>
#include <boost/fusion/support/internal/workaround.hpp>
#include <boost/fusion/support/internal/assert.hpp>
-
#include <boost/mpl/int.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/mpl/or.hpp>
-# include <boost/type_traits/is_same.hpp>
-#endif
namespace boost { namespace fusion
{
Modified: sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/at_key.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/at_key.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/at_key.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -10,9 +10,6 @@
#ifndef BOOST_FUSION_SEQUENCE_INTRINSIC_AT_KEY_HPP
#define BOOST_FUSION_SEQUENCE_INTRINSIC_AT_KEY_HPP
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/has_key.hpp>
-#endif
#include <boost/fusion/iterator/deref_data.hpp>
#include <boost/fusion/algorithm/query/find_key.hpp>
#include <boost/fusion/support/internal/ref.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/back.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/back.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/back.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -8,9 +8,6 @@
#ifndef BOOST_FUSION_SEQUENCE_INTRINSIC_BACK_HPP
#define BOOST_FUSION_SEQUENCE_INTRINSIC_BACK_HPP
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/empty.hpp>
-#endif
#include <boost/fusion/sequence/intrinsic/end.hpp>
#include <boost/fusion/iterator/prior.hpp>
#include <boost/fusion/iterator/deref.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/ext_/segments.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/ext_/segments.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/ext_/segments.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -11,9 +11,6 @@
#include <boost/fusion/support/tag_of.hpp>
#include <boost/fusion/support/internal/assert.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/supported/ext_/is_segmented.hpp>
-#endif
namespace boost { namespace fusion
{
Modified: sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/front.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/front.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/front.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -8,9 +8,6 @@
#ifndef BOOST_FUSION_SEQUENCE_INTRINSIC_FRONT_HPP
#define BOOST_FUSION_SEQUENCE_INTRINSIC_FRONT_HPP
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/empty.hpp>
-#endif
#include <boost/fusion/sequence/intrinsic/begin.hpp>
#include <boost/fusion/iterator/deref.hpp>
#include <boost/fusion/support/internal/ref.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/value_at.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/value_at.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/value_at.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -8,18 +8,10 @@
#ifndef BOOST_FUSION_SEQUENCE_INTRINSIC_VALUE_AT_HPP
#define BOOST_FUSION_SEQUENCE_INTRINSIC_VALUE_AT_HPP
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/size.hpp>
-#endif
#include <boost/fusion/support/tag_of.hpp>
#include <boost/fusion/support/internal/ref.hpp>
#include <boost/fusion/support/internal/assert.hpp>
-
#include <boost/mpl/int.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/mpl/or.hpp>
-# include <boost/type_traits/is_same.hpp>
-#endif
namespace boost { namespace fusion
{
Modified: sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/value_at_key.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/value_at_key.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/sequence/intrinsic/value_at_key.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -9,9 +9,6 @@
#ifndef BOOST_FUSION_SEQUENCE_INTRINSIC_VALUE_AT_KEY_HPP
#define BOOST_FUSION_SEQUENCE_INTRINSIC_VALUE_AT_KEY_HPP
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/has_key.hpp>
-#endif
#include <boost/fusion/iterator/value_of_data.hpp>
#include <boost/fusion/algorithm/query/find_key.hpp>
#include <boost/fusion/support/tag_of.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/support/category_of.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/support/category_of.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/support/category_of.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -13,10 +13,6 @@
#include <boost/fusion/support/internal/ref.hpp>
#include <boost/fusion/support/tag_of.hpp>
#include <boost/fusion/support/internal/assert.hpp>
-
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/mpl/or.hpp>
-#endif
#include <boost/mpl/iterator_tags.hpp>
#include <boost/type_traits/is_base_of.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/support/internal/assert.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/support/internal/assert.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/support/internal/assert.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -96,12 +96,13 @@
BOOST_FUSION_MPL_ASSERT((is_same<typename traits::tag_of<TYPE>::type,TAG>))
#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/support/is_sequence.hpp>
-# include <boost/fusion/support/is_view.hpp>
-# include <boost/fusion/support/is_iterator.hpp>
-# include <boost/fusion/support/category_of.hpp>
-# include <boost/fusion/support/tag_of.hpp>
-
+# include <boost/fusion/sequence.hpp>
+# include <boost/fusion/iterator.hpp>
+# include <boost/fusion/support.hpp>
+# include <boost/mpl/and.hpp>
+# include <boost/mpl/or.hpp>
+# include <boost/mpl/not.hpp>
+# include <boost/mpl/equal_to.hpp>
# include <boost/type_traits/is_same.hpp>
#endif
Modified: sandbox/SOC/2009/fusion/boost/fusion/view/filter_view/filter_view.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/view/filter_view/filter_view.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/view/filter_view/filter_view.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -16,14 +16,10 @@
#include <boost/fusion/support/sequence_base.hpp>
#include <boost/fusion/support/internal/assert.hpp>
#include <boost/fusion/view/detail/view_storage.hpp>
-
#include <boost/mpl/eval_if.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/inherit.hpp>
#include <boost/mpl/identity.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/type_traits/is_same.hpp>
-#endif
#include <boost/fusion/view/filter_view/detail/filter_view_fwd.hpp>
#include <boost/fusion/view/filter_view/detail/filter_view_iterator.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/view/iterator_range/iterator_range.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/view/iterator_range/iterator_range.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/view/iterator_range/iterator_range.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -14,14 +14,10 @@
#include <boost/fusion/support/sequence_base.hpp>
#include <boost/fusion/support/category_of.hpp>
#include <boost/fusion/support/internal/assert.hpp>
-
#include <boost/mpl/eval_if.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/inherit.hpp>
#include <boost/mpl/identity.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/type_traits/is_same.hpp>
-#endif
#include <boost/fusion/view/iterator_range/detail/iterator_range_fwd.hpp>
#include <boost/fusion/view/iterator_range/detail/begin_impl.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/view/nview/detail/nview_iterator.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/view/nview/detail/nview_iterator.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/view/nview/detail/nview_iterator.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -12,10 +12,6 @@
#include <boost/fusion/support/iterator_base.hpp>
#include <boost/fusion/support/internal/assert.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/mpl/eqaul_to.hpp>
-#endif
-
namespace boost { namespace fusion
{
struct nview_iterator_tag;
Modified: sandbox/SOC/2009/fusion/boost/fusion/view/nview/nview.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/view/nview/nview.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/view/nview/nview.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -12,9 +12,6 @@
#include <boost/fusion/support/internal/assert.hpp>
#include <boost/fusion/view/detail/view_storage.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/support/category_of.hpp>
-#endif
#include <boost/fusion/support/sequence_base.hpp>
#include <boost/fusion/support/internal/ref.hpp>
#include <boost/fusion/support/internal/workaround.hpp>
Modified: sandbox/SOC/2009/fusion/boost/fusion/view/repetitive_view/repetitive_view.hpp
==============================================================================
--- sandbox/SOC/2009/fusion/boost/fusion/view/repetitive_view/repetitive_view.hpp (original)
+++ sandbox/SOC/2009/fusion/boost/fusion/view/repetitive_view/repetitive_view.hpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -17,19 +17,10 @@
#include <boost/fusion/support/sequence_base.hpp>
#include <boost/fusion/support/internal/workaround.hpp>
#include <boost/fusion/support/internal/assert.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/fusion/sequence/intrinsic/empty.hpp>
-#endif
#include <boost/fusion/view/detail/view_storage.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/int.hpp>
-#ifdef BOOST_FUSION_ENABLE_STATIC_ASSERTS
-# include <boost/mpl/eqaul_to.hpp>
-# include <boost/mpl/not.hpp>
-# include <boost/mpl/or_.hpp>
-# include <boost/mpl/not.hpp>
-#endif
#include <boost/integer_traits.hpp>
#include <boost/fusion/view/repetitive_view/detail/repetitive_view_fwd.hpp>
Modified: sandbox/SOC/2009/fusion/libs/fusion/test/Jamfile
==============================================================================
--- sandbox/SOC/2009/fusion/libs/fusion/test/Jamfile (original)
+++ sandbox/SOC/2009/fusion/libs/fusion/test/Jamfile 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -71,6 +71,7 @@
[ run sequence/single_view.cpp : : : : ]
[ run sequence/std_pair.cpp : : : : ]
[ run sequence/array.cpp : : : : ]
+ [ run sequence/boost_array.cpp : : : : ]
[ run sequence/tuple_comparison.cpp : : : : ]
[ run sequence/tuple_construction.cpp : : : : ]
[ run sequence/tuple_copy.cpp : : : : ]
Added: sandbox/SOC/2009/fusion/libs/fusion/test/sequence/array.cpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2009/fusion/libs/fusion/test/sequence/array.cpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -0,0 +1,39 @@
+/*=============================================================================
+ Copyright (c) 2010 Christopher Schmidt
+
+ 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)
+==============================================================================*/
+
+#include <boost/detail/lightweight_test.hpp>
+
+#include <boost/fusion/adapted/array.hpp>
+#include <boost/fusion/sequence/intrinsic.hpp>
+#include <boost/fusion/iterator.hpp>
+#include <boost/fusion/support/is_sequence.hpp>
+#include <boost/fusion/support/is_view.hpp>
+
+#include <boost/mpl/assert.hpp>
+
+int main()
+{
+ using namespace boost::fusion;
+ typedef int array_type[3];
+
+ BOOST_MPL_ASSERT((traits::is_sequence<array_type>));
+ BOOST_MPL_ASSERT_NOT((traits::is_view<array_type>));
+
+ array_type arr = {1,2,3};
+
+ BOOST_TEST(*begin(arr) == 1);
+ BOOST_TEST(*next(begin(arr)) == 2);
+ BOOST_TEST(*advance_c<2>(begin(arr)) == 3);
+ BOOST_TEST(prior(next(begin(arr))) == begin(arr));
+ BOOST_TEST(*prior(end(arr)) == 3);
+ BOOST_TEST(at_c<2>(arr) == 3);
+ BOOST_TEST(size(arr) == 3);
+ BOOST_TEST(distance(begin(arr), end(arr)) == 3);
+
+ return boost::report_errors();
+}
+
Copied: sandbox/SOC/2009/fusion/libs/fusion/test/sequence/boost_array.cpp (from r59536, /sandbox/SOC/2009/fusion/libs/fusion/test/sequence/array.cpp)
==============================================================================
--- /sandbox/SOC/2009/fusion/libs/fusion/test/sequence/array.cpp (original)
+++ sandbox/SOC/2009/fusion/libs/fusion/test/sequence/boost_array.cpp 2010-02-07 13:09:09 EST (Sun, 07 Feb 2010)
@@ -1,6 +1,7 @@
/*=============================================================================
Copyright (c) 2001-2006 Joel de Guzman
Copyright (c) 2005-2006 Dan Marsden
+ Copyright (c) 2010 Christopher Schmidt
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)
@@ -8,7 +9,7 @@
#include <boost/detail/lightweight_test.hpp>
-#include <boost/fusion/adapted/array.hpp>
+#include <boost/fusion/adapted/boost_array.hpp>
#include <boost/array.hpp>
#include <boost/fusion/sequence/intrinsic.hpp>
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