Boost logo

Boost-Commit :

From: chochlik_at_[hidden]
Date: 2008-07-07 09:11:18


Author: matus.chochlik
Date: 2008-07-07 09:11:17 EDT (Mon, 07 Jul 2008)
New Revision: 47187
URL: http://svn.boost.org/trac/boost/changeset/47187

Log:
- Minor bugfixes

Text files modified:
   sandbox/mirror/boost/mirror/meta_data_fwd.hpp | 11 +++++++++++
   sandbox/mirror/libs/mirror/example/registering/namespaces.cpp | 6 +++---
   sandbox/mirror/libs/mirror/example/registering/types.cpp | 2 +-
   3 files changed, 15 insertions(+), 4 deletions(-)

Modified: sandbox/mirror/boost/mirror/meta_data_fwd.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_data_fwd.hpp (original)
+++ sandbox/mirror/boost/mirror/meta_data_fwd.hpp 2008-07-07 09:11:17 EDT (Mon, 07 Jul 2008)
@@ -70,6 +70,17 @@
>
 
 /** Macro that expands into the meta_type for the
+ * given type typedefined on the global scope.
+ */
+#define BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE(TYPEDEF) \
+ ::boost::mirror::meta_type< \
+ BOOST_MIRROR_GET_TYPEDEFD_TYPE_SELECTOR_GS(NAMESPACE, TYPEDEF) \
+ >
+
+#define BOOST_MIRRORED_TYPEDEF_GS(TYPEDEF) \
+ BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE(TYPEDEF)
+
+/** Macro that expands into the meta_type for the
  * type of the given expression.
  * To get this going <boost/typeof/typeof.hpp>
  * has to be included.

Modified: sandbox/mirror/libs/mirror/example/registering/namespaces.cpp
==============================================================================
--- sandbox/mirror/libs/mirror/example/registering/namespaces.cpp (original)
+++ sandbox/mirror/libs/mirror/example/registering/namespaces.cpp 2008-07-07 09:11:17 EDT (Mon, 07 Jul 2008)
@@ -95,13 +95,13 @@
         //
         // the name_to_stream<meta_object> class allows to put the full name
         // (including the scope) into a stream
- bcout << "|07| " <<name_to_stream< BOOST_MIRRORED_NAMESPACE(::) >() << endl;
+ bcout << "|07| " <<name_to_stream< BOOST_MIRRORED_GLOBAL_SCOPE() >() << endl;
         bcout << "|08| " <<name_to_stream< BOOST_MIRRORED_NAMESPACE(::test) >() << endl;
         bcout << "|09| " <<name_to_stream< BOOST_MIRRORED_NAMESPACE(::test::stuff) >() << endl;
         bcout << "|10| " <<name_to_stream< BOOST_MIRRORED_NAMESPACE(::test::stuff::detail) >() << endl;
         // in this case the :: is prepended to the full name
         // thus test::stuff -> ::test::stuff
- bcout << "|11| " <<name_to_stream< BOOST_MIRRORED_NAMESPACE(::) >(true) << endl;
+ bcout << "|11| " <<name_to_stream< BOOST_MIRRORED_GLOBAL_SCOPE() >(true) << endl;
         bcout << "|12| " <<name_to_stream< BOOST_MIRRORED_NAMESPACE(::test) >(true) << endl;
         bcout << "|13| " <<name_to_stream< BOOST_MIRRORED_NAMESPACE(::test::stuff) >(true) << endl;
         bcout << "|14| " <<name_to_stream< BOOST_MIRRORED_NAMESPACE(::test::stuff::detail) >(true) << endl;
@@ -114,7 +114,7 @@
         //
         // printing out the full namespace names directly without the name_to_stream
         // printer template
- bcout << "|18| " << BOOST_MIRRORED_NAMESPACE(::) ::full_name() << endl;
+ bcout << "|18| " << BOOST_MIRRORED_GLOBAL_SCOPE() ::full_name() << endl;
         bcout << "|19| " << BOOST_MIRRORED_NAMESPACE(::std) ::full_name() << endl;
         bcout << "|20| " << BOOST_MIRRORED_NAMESPACE(::boost) ::full_name() << endl;
         bcout << "|21| " << BOOST_MIRRORED_NAMESPACE(::boost::mirror) ::full_name() << endl;

Modified: sandbox/mirror/libs/mirror/example/registering/types.cpp
==============================================================================
--- sandbox/mirror/libs/mirror/example/registering/types.cpp (original)
+++ sandbox/mirror/libs/mirror/example/registering/types.cpp 2008-07-07 09:11:17 EDT (Mon, 07 Jul 2008)
@@ -183,7 +183,7 @@
         //
         bcout << "|43| " << BOOST_MIRRORED_TYPE(const volatile ::bar&) ::full_name() << endl;
         bcout << "|44| " << BOOST_MIRRORED_TYPE(const volatile ::baz*) ::full_name() << endl;
- bcout << "|44| " << BOOST_MIRRORED_TYPEDEF(::, foobar) ::full_name() << endl;
+ bcout << "|44| " << BOOST_MIRRORED_TYPEDEF_GS(foobar) ::full_name() << endl;
         //
         // multi-dimensional arrays
         typedef ::bar * const * T45 [][1][2][3][4][5][6][7][8][9];


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