Update of /cvsroot/boost/boost/boost/bimap/relation
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14557/relation

Modified Files:
        member_at.hpp mutant_relation.hpp structured_pair.hpp 
Log Message:
added info support

Index: member_at.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/bimap/relation/member_at.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- member_at.hpp       25 May 2007 01:07:07 -0000      1.1
+++ member_at.hpp       4 Jun 2007 17:47:38 -0000       1.2
@@ -55,6 +55,14 @@
                                             **/
 
     struct right {};
+
+    /// \brief Member info tag
+    /**
+    See also member_at, left, right.
+                                            **/
+
+    struct info  {};
+
 };
 
 } // namespace relation

Index: mutant_relation.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/bimap/relation/mutant_relation.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mutant_relation.hpp 1 Jun 2007 03:31:00 -0000       1.3
+++ mutant_relation.hpp 4 Jun 2007 17:47:38 -0000       1.4
@@ -54,11 +54,11 @@
 {
     typedef symmetrical_base<LeftType,RightType,force_mutable> base_;
 
-       typedef relation_storage storage_;
+    typedef relation_storage storage_;
 
     public:
 
-       typedef relation_storage<LeftType,RightType,false> non_mutable_storage;
+    typedef relation_storage<LeftType,RightType,false> non_mutable_storage;
 
     typedef ::boost::mpl::vector2
     <
@@ -67,8 +67,6 @@
 
     > mutant_views;
 
-       
-
     //@{
         /// data
         BOOST_DEDUCED_TYPENAME base_::left_value_type  left;
@@ -101,8 +99,12 @@
     typedef ::boost::bimaps::relation::detail::
                 relation_storage<TA,TB,force_mutable> base_;
 
+    typedef BOOST_DEDUCED_TYPENAME ::boost::bimaps::tags::support::
+        default_tagged<Info,member_at::info>::type tagged_info_type;
+
     public:
-    typedef Info info_type;
+    typedef BOOST_DEDUCED_TYPENAME tagged_info_type::value_type info_type;
+    typedef BOOST_DEDUCED_TYPENAME tagged_info_type::tag        info_tag;
 
     info_type info;
 
@@ -155,6 +157,7 @@
 
     public:
     typedef ::boost::mpl::na info_type;
+    typedef member_at::info info_tag;
 
     protected:
 
@@ -327,7 +330,7 @@
 
     template< class Tag >
     const BOOST_DEDUCED_TYPENAME ::boost::bimaps::relation::support::
-        result_of::get<Tag,mutant_relation>::type
+        result_of::get<Tag,const mutant_relation>::type
     get(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag)) const
     {
         return ::boost::bimaps::relation::support::get<Tag>(*this);

Index: structured_pair.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/bimap/relation/structured_pair.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- structured_pair.hpp 31 May 2007 07:01:34 -0000      1.2
+++ structured_pair.hpp 4 Jun 2007 17:47:38 -0000       1.3
@@ -163,8 +163,12 @@
 {
     typedef BOOST_DEDUCED_TYPENAME 
::boost::bimaps::relation::detail::storage_finder<TA,TB,Layout>::type base_;
 
+    typedef BOOST_DEDUCED_TYPENAME ::boost::bimaps::tags::support::
+        default_tagged<Info,member_at::info>::type tagged_info_type;
+
     public:
-    typedef Info info_type;
+    typedef BOOST_DEDUCED_TYPENAME tagged_info_type::value_type info_type;
+    typedef BOOST_DEDUCED_TYPENAME tagged_info_type::tag        info_tag;
 
     info_type info;
 
@@ -210,6 +214,7 @@
 
     public:
     typedef ::boost::mpl::na info_type;
+    typedef member_at::info info_tag;
 
     protected:
 
@@ -331,7 +336,7 @@
 
     template< class Tag >
     const BOOST_DEDUCED_TYPENAME ::boost::bimaps::relation::support::
-        result_of::get<Tag,structured_pair>::type
+        result_of::get<Tag,const structured_pair>::type
     get(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag)) const
     {
         return ::boost::bimaps::relation::support::get<Tag>(*this);


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to