Update of /cvsroot/boost/boost/libs/fusion/example/extension/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10541/detail

Modified Files:
        advance_impl.hpp at_impl.hpp at_key_impl.hpp begin_impl.hpp 
        category_of_impl.hpp deref_impl.hpp distance_impl.hpp 
        end_impl.hpp equal_to_impl.hpp has_key_impl.hpp 
        is_sequence_impl.hpp is_view_impl.hpp next_impl.hpp 
        prior_impl.hpp size_impl.hpp value_at_impl.hpp 
        value_at_key_impl.hpp value_of_impl.hpp 
Removed Files:
        is_associative_impl.hpp 
Log Message:
better namespace discipline, ftag removal

Index: advance_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/advance_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- advance_impl.hpp    22 Aug 2006 15:57:01 -0000      1.1
+++ advance_impl.hpp    1 Oct 2006 15:47:17 -0000       1.2
@@ -9,12 +9,15 @@
 #if !defined(BOOST_FUSION_ADVANCE_IMPL_20060222_2150)
 #define BOOST_FUSION_ADVANCE_IMPL_20060222_2150
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_struct_iterator_tag;
 
     template<typename Struct, int Pos>
     struct example_struct_iterator;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -22,14 +25,14 @@
         struct advance_impl;
 
         template<>
-        struct advance_impl<example_struct_iterator_tag>
+        struct advance_impl<example::example_struct_iterator_tag>
         {
             template<typename Iterator, typename N>
             struct apply
             {
                 typedef typename Iterator::struct_type struct_type;
                 typedef typename Iterator::index index;
-                typedef example_struct_iterator<
+                typedef example::example_struct_iterator<
                     struct_type, index::value + N::value> type;
 
                 static type

Index: at_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/at_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- at_impl.hpp 22 Aug 2006 15:57:02 -0000      1.1
+++ at_impl.hpp 1 Oct 2006 15:47:17 -0000       1.2
@@ -14,9 +14,12 @@
 #include <boost/mpl/int.hpp>
 #include <boost/type_traits/is_const.hpp>
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_sequence_tag;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -24,7 +27,7 @@
         struct at_impl;
 
         template<>
-        struct at_impl<example_sequence_tag>
+        struct at_impl<example::example_sequence_tag>
         {
             template<typename Sequence, typename Key>
             struct apply;

Index: at_key_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/at_key_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- at_key_impl.hpp     22 Aug 2006 15:57:04 -0000      1.1
+++ at_key_impl.hpp     1 Oct 2006 15:47:17 -0000       1.2
@@ -19,9 +19,12 @@
     struct age;
 }
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_sequence_tag;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -29,7 +32,7 @@
         struct at_key_impl;
 
         template<>
-        struct at_key_impl<example_sequence_tag>
+        struct at_key_impl<example::example_sequence_tag>
         {
             template<typename Sequence, typename Key>
             struct apply;

Index: begin_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/begin_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- begin_impl.hpp      22 Aug 2006 15:57:04 -0000      1.1
+++ begin_impl.hpp      1 Oct 2006 15:47:17 -0000       1.2
@@ -11,22 +11,25 @@
 
 #include "../example_struct_iterator.hpp"
 
-namespace boost { namespace fusion {
-    
+namespace example
+{
     struct example_sequence_tag;
+}
 
+namespace boost { namespace fusion {
+    
     namespace extension
     {
         template<typename Tag>
         struct begin_impl;
 
         template<>
-        struct begin_impl<example_sequence_tag>
+        struct begin_impl<example::example_sequence_tag>
         {
             template<typename Sequence>
             struct apply
             {
-                typedef example_struct_iterator<Sequence, 0> type;
+                typedef example::example_struct_iterator<Sequence, 0> type;
 
                 static type
                 call(Sequence& seq)

Index: category_of_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/category_of_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- category_of_impl.hpp        22 Aug 2006 15:57:04 -0000      1.1
+++ category_of_impl.hpp        1 Oct 2006 15:47:17 -0000       1.2
@@ -9,22 +9,24 @@
 #if !defined(BOOST_FUSION_CATEGORY_OF_IMPL_20060223_2037)
 #define BOOST_FUSION_CATEGORY_OF_IMPL_20060223_2037
 
-namespace boost { namespace fusion {
+#include <boost/fusion/support/category_of.hpp>
 
-    struct random_access_traversal_tag;
+namespace example
+{
+    struct example_sequence_tag;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
-        template<typename Tag>
-        struct category_of_impl;
-
         template<>
-        struct category_of_impl<example_sequence_tag>
+        struct category_of_impl<example::example_sequence_tag>
         {
             template<typename Sequence>
             struct apply
             {
-                typedef random_access_traversal_tag type;
+                struct type : random_access_traversal_tag, 
associative_sequence_tag {};
             };
         };
     }

Index: deref_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/deref_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- deref_impl.hpp      22 Aug 2006 15:57:04 -0000      1.1
+++ deref_impl.hpp      1 Oct 2006 15:47:17 -0000       1.2
@@ -15,12 +15,15 @@
 
 #include <string>
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_struct_iterator_tag;
 
     template<typename Struct, int Pos>
     struct example_struct_iterator;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -28,32 +31,32 @@
         struct deref_impl;
 
         template<>
-        struct deref_impl<example_struct_iterator_tag>
+        struct deref_impl<example::example_struct_iterator_tag>
         {
             template<typename Iterator>
             struct apply;
 
             template<typename Struct>
-            struct apply<example_struct_iterator<Struct, 0> >
+            struct apply<example::example_struct_iterator<Struct, 0> >
             {
                 typedef typename mpl::if_<
                     is_const<Struct>, std::string const&, std::string&>::type 
type;
 
                 static type
-                call(example_struct_iterator<Struct, 0> const& it)
+                call(example::example_struct_iterator<Struct, 0> const& it)
                 {
                     return it.struct_.name;
                 }
             };
 
             template<typename Struct>
-            struct apply<example_struct_iterator<Struct, 1> >
+            struct apply<example::example_struct_iterator<Struct, 1> >
             {
                 typedef typename mpl::if_<
                     is_const<Struct>, int const&, int&>::type type;
 
                 static type
-                call(example_struct_iterator<Struct, 1> const& it)
+                call(example::example_struct_iterator<Struct, 1> const& it)
                 {
                     return it.struct_.age;
                 }

Index: distance_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/distance_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- distance_impl.hpp   22 Aug 2006 15:57:04 -0000      1.1
+++ distance_impl.hpp   1 Oct 2006 15:47:17 -0000       1.2
@@ -11,9 +11,12 @@
 
 #include <boost/mpl/minus.hpp>
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_struct_iterator_tag;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -21,7 +24,7 @@
         struct distance_impl;
 
         template<>
-        struct distance_impl<example_struct_iterator_tag>
+        struct distance_impl<example::example_struct_iterator_tag>
         {
             template<typename First, typename Last>
             struct apply

Index: end_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/end_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- end_impl.hpp        22 Aug 2006 15:57:04 -0000      1.1
+++ end_impl.hpp        1 Oct 2006 15:47:17 -0000       1.2
@@ -11,22 +11,25 @@
 
 #include "../example_struct_iterator.hpp"
 
-namespace boost { namespace fusion {
-    
+namespace example
+{
     struct example_sequence_tag;
+}
 
+namespace boost { namespace fusion {
+    
     namespace extension
     {
         template<typename Tag>
         struct end_impl;
 
         template<>
-        struct end_impl<example_sequence_tag>
+        struct end_impl<example::example_sequence_tag>
         {
             template<typename Sequence>
             struct apply
             {
-                typedef example_struct_iterator<Sequence, 2> type;
+                typedef example::example_struct_iterator<Sequence, 2> type;
 
                 static type
                 call(Sequence& seq)

Index: equal_to_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/equal_to_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- equal_to_impl.hpp   22 Aug 2006 15:57:04 -0000      1.1
+++ equal_to_impl.hpp   1 Oct 2006 15:47:17 -0000       1.2
@@ -11,9 +11,12 @@
 
 #include <boost/mpl/equal_to.hpp>
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_struct_iterator_tag;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -21,7 +24,7 @@
         struct equal_to_impl;
 
         template<>
-        struct equal_to_impl<example_struct_iterator_tag>
+        struct equal_to_impl<example::example_struct_iterator_tag>
         {
             template<typename It1, typename It2>
             struct apply

Index: has_key_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/has_key_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- has_key_impl.hpp    22 Aug 2006 15:57:04 -0000      1.1
+++ has_key_impl.hpp    1 Oct 2006 15:47:17 -0000       1.2
@@ -18,9 +18,12 @@
     struct age;
 }
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_sequence_tag;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -28,7 +31,7 @@
         struct has_key_impl;
 
         template<>
-        struct has_key_impl<example_sequence_tag>
+        struct has_key_impl<example::example_sequence_tag>
         {
             template<typename Sequence, typename Key>
             struct apply

Index: is_sequence_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/is_sequence_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- is_sequence_impl.hpp        22 Aug 2006 15:57:04 -0000      1.1
+++ is_sequence_impl.hpp        1 Oct 2006 15:47:17 -0000       1.2
@@ -11,17 +11,20 @@
 
 #include <boost/mpl/bool.hpp>
 
-namespace boost { namespace fusion
+namespace example
 {
     struct example_sequence_tag;
+}
 
+namespace boost { namespace fusion
+{
     namespace extension
     {
         template<typename Tag>
         struct is_sequence_impl;
 
         template<>
-        struct is_sequence_impl<example_sequence_tag>
+        struct is_sequence_impl<example::example_sequence_tag>
         {
             template<typename T>
             struct apply : mpl::true_ {};

Index: is_view_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/is_view_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- is_view_impl.hpp    22 Aug 2006 15:57:04 -0000      1.1
+++ is_view_impl.hpp    1 Oct 2006 15:47:17 -0000       1.2
@@ -11,17 +11,20 @@
 
 #include <boost/mpl/bool.hpp>
 
-namespace boost { namespace fusion 
+namespace example
 {
   struct example_sequence_tag;
+}
 
+namespace boost { namespace fusion 
+{
   namespace extension
   {
     template<typename Tag>
     struct is_view_impl;
 
     template<>
-    struct is_view_impl<example_sequence_tag>
+    struct is_view_impl<example::example_sequence_tag>
       : boost::mpl::false_
     {};
   }

Index: next_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/next_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- next_impl.hpp       22 Aug 2006 15:57:04 -0000      1.1
+++ next_impl.hpp       1 Oct 2006 15:47:17 -0000       1.2
@@ -9,12 +9,15 @@
 #if !defined(BOOST_FUSION_NEXT_IMPL_20060222_1859)
 #define BOOST_FUSION_NEXT_IMPL_20060222_1859
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_struct_iterator_tag;
 
     template<typename Struct, int Pos>
     struct example_struct_iterator;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -22,14 +25,14 @@
         struct next_impl;
 
         template<>
-        struct next_impl<example_struct_iterator_tag>
+        struct next_impl<example::example_struct_iterator_tag>
         {
             template<typename Iterator>
             struct apply
             {
                 typedef typename Iterator::struct_type struct_type;
                 typedef typename Iterator::index index;
-                typedef example_struct_iterator<struct_type, index::value + 1> 
type;
+                typedef example::example_struct_iterator<struct_type, 
index::value + 1> type;
 
                 static type
                 call(Iterator const& i)

Index: prior_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/prior_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- prior_impl.hpp      22 Aug 2006 15:57:05 -0000      1.1
+++ prior_impl.hpp      1 Oct 2006 15:47:17 -0000       1.2
@@ -9,12 +9,15 @@
 #if !defined(BOOST_FUSION_PRIOR_IMPL_20060222_1944)
 #define BOOST_FUSION_PRIOR_IMPL_20060222_1944
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_struct_iterator_tag;
 
     template<typename Struct, int Pos>
     struct example_struct_iterator;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -22,14 +25,14 @@
         struct prior_impl;
 
         template<>
-        struct prior_impl<example_struct_iterator_tag>
+        struct prior_impl<example::example_struct_iterator_tag>
         {
             template<typename Iterator>
             struct apply
             {
                 typedef typename Iterator::struct_type struct_type;
                 typedef typename Iterator::index index;
-                typedef example_struct_iterator<struct_type, index::value - 1> 
type;
+                typedef example::example_struct_iterator<struct_type, 
index::value - 1> type;
 
                 static type
                 call(Iterator const& i)

Index: size_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/size_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- size_impl.hpp       22 Aug 2006 15:57:05 -0000      1.1
+++ size_impl.hpp       1 Oct 2006 15:47:17 -0000       1.2
@@ -11,9 +11,12 @@
 
 #include <boost/mpl/int.hpp>
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_sequence_tag;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -21,7 +24,7 @@
         struct size_impl;
 
         template<>
-        struct size_impl<example_sequence_tag>
+        struct size_impl<example::example_sequence_tag>
         {
             template<typename Sequence>
             struct apply

Index: value_at_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/value_at_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- value_at_impl.hpp   22 Aug 2006 15:57:05 -0000      1.1
+++ value_at_impl.hpp   1 Oct 2006 15:47:17 -0000       1.2
@@ -9,9 +9,12 @@
 #if !defined(BOOST_FUSION_VALUE_AT_IMPL_20060223_2025)
 #define BOOST_FUSION_VALUE_AT_IMPL_20060223_2025
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_sequence_tag;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -19,7 +22,7 @@
         struct value_at_impl;
 
         template<>
-        struct value_at_impl<example_sequence_tag>
+        struct value_at_impl<example::example_sequence_tag>
         {
             template<typename Sequence, typename N>
             struct apply;

Index: value_at_key_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/value_at_key_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- value_at_key_impl.hpp       22 Aug 2006 15:57:05 -0000      1.1
+++ value_at_key_impl.hpp       1 Oct 2006 15:47:17 -0000       1.2
@@ -15,9 +15,12 @@
     struct age;
 }
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_sequence_tag;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -25,7 +28,7 @@
         struct value_at_key_impl;
 
         template<>
-        struct value_at_key_impl<example_sequence_tag>
+        struct value_at_key_impl<example::example_sequence_tag>
         {
             template<typename Sequence, typename N>
             struct apply;

Index: value_of_impl.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/fusion/example/extension/detail/value_of_impl.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- value_of_impl.hpp   22 Aug 2006 15:57:06 -0000      1.1
+++ value_of_impl.hpp   1 Oct 2006 15:47:17 -0000       1.2
@@ -11,12 +11,15 @@
 
 #include <string>
 
-namespace boost { namespace fusion {
-
+namespace example
+{
     struct example_struct_iterator_tag;
 
     template<typename Struct, int Pos>
     struct example_struct_iterator;
+}
+
+namespace boost { namespace fusion {
 
     namespace extension
     {
@@ -24,23 +27,22 @@
         struct value_of_impl;
 
         template<>
-        struct value_of_impl<example_struct_iterator_tag>
+        struct value_of_impl<example::example_struct_iterator_tag>
         {
             template<typename Iterator>
             struct apply;
 
             template<typename Struct>
-            struct apply<example_struct_iterator<Struct, 0> >
+            struct apply<example::example_struct_iterator<Struct, 0> >
             {
                 typedef std::string type;
             };
 
             template<typename Struct>
-            struct apply<example_struct_iterator<Struct, 1> >
+            struct apply<example::example_struct_iterator<Struct, 1> >
             {
                 typedef int type;
             };
-
         };
     }
 }}

--- is_associative_impl.hpp DELETED ---


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to