Boost logo

Boost-Commit :

From: chochlik_at_[hidden]
Date: 2008-06-19 10:59:24


Author: matus.chochlik
Date: 2008-06-19 10:59:24 EDT (Thu, 19 Jun 2008)
New Revision: 46515
URL: http://svn.boost.org/trac/boost/changeset/46515

Log:
minor fix
Text files modified:
   sandbox/mirror/boost/mirror/visitors/sample.hpp | 12 +++++++-----
   sandbox/mirror/libs/mirror/example/traversal/sample_visitor.cpp | 4 ----
   2 files changed, 7 insertions(+), 9 deletions(-)

Modified: sandbox/mirror/boost/mirror/visitors/sample.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/visitors/sample.hpp (original)
+++ sandbox/mirror/boost/mirror/visitors/sample.hpp 2008-06-19 10:59:24 EDT (Thu, 19 Jun 2008)
@@ -20,6 +20,11 @@
 // container size
 #include <boost/mirror/algorithm/size.hpp>
 //
+// meta-path related stuff
+#include <boost/mirror/meta_path/self.hpp>
+#include <boost/mirror/meta_path/ancestors.hpp>
+#include <boost/mirror/meta_path/size.hpp>
+
 //
 #include <boost/type_traits/is_fundamental.hpp>
 
@@ -150,13 +155,10 @@
                         MetaAttribute::base_name() <<
                         "' static='" <<
                         (MetaAttribute::traits::is_static::value?"true":"false") <<
+ "' depth='" <<
+ meta_path::size<meta_path::ancestors<Context> >::value <<
                         "'>" <<
                         endl;
-bcout <<
- "---" << meta_path::size<meta_path::self<Context> >::value << "---" <<
- endl <<
- "---" << meta_path::size<meta_path::ancestors<Context> >::value << "---" <<
- endl;
         }
 
         template <class MetaAttribute, class Context>

Modified: sandbox/mirror/libs/mirror/example/traversal/sample_visitor.cpp
==============================================================================
--- sandbox/mirror/libs/mirror/example/traversal/sample_visitor.cpp (original)
+++ sandbox/mirror/libs/mirror/example/traversal/sample_visitor.cpp 2008-06-19 10:59:24 EDT (Thu, 19 Jun 2008)
@@ -22,10 +22,6 @@
 #include <boost/mirror/meta_types/boost_tuple.hpp>
 #include <boost/mirror/meta_classes/boost_tuple.hpp>
 
-#include <boost/mirror/meta_path/self.hpp>
-#include <boost/mirror/meta_path/ancestors.hpp>
-#include <boost/mirror/meta_path/size.hpp>
-
 #include <boost/mirror/visitors/sample.hpp>
 #include <boost/mirror/traversal.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