Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52807 - in sandbox/mirror: boost/mirror boost/mirror/factory/wx_constructor_gui libs/mirror/example/factories
From: chochlik_at_[hidden]
Date: 2009-05-06 15:42:00


Author: matus.chochlik
Date: 2009-05-06 15:42:00 EDT (Wed, 06 May 2009)
New Revision: 52807
URL: http://svn.boost.org/trac/boost/changeset/52807

Log:
[mirror 0.4.x]
- minor bugfixes to make mirror work with msvc
Text files modified:
   sandbox/mirror/boost/mirror/factory/wx_constructor_gui/basic.hpp | 2 +-
   sandbox/mirror/boost/mirror/meta_mem_functions.hpp | 15 +++++++++------
   sandbox/mirror/libs/mirror/example/factories/inserter.cpp | 7 ++++++-
   3 files changed, 16 insertions(+), 8 deletions(-)

Modified: sandbox/mirror/boost/mirror/factory/wx_constructor_gui/basic.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/factory/wx_constructor_gui/basic.hpp (original)
+++ sandbox/mirror/boost/mirror/factory/wx_constructor_gui/basic.hpp 2009-05-06 15:42:00 EDT (Wed, 06 May 2009)
@@ -73,7 +73,7 @@
                 make_ctl(
                         text_ctl_maker(pattern, message),
                         parent_data,
- pc,
+ mf,
                         fi,
                         pi
                 )

Modified: sandbox/mirror/boost/mirror/meta_mem_functions.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_mem_functions.hpp (original)
+++ sandbox/mirror/boost/mirror/meta_mem_functions.hpp 2009-05-06 15:42:00 EDT (Wed, 06 May 2009)
@@ -249,10 +249,10 @@
                 struct reflected_result
                 {
                         BOOST_TYPEOF_NESTED_TYPEDEF_TPL(
- nested,
+ nested_result,
                                 base_meta_data::get_result_of(Idx())
                         );
- typedef typename nested::type fn_result_type;
+ typedef typename nested_result::type fn_result_type;
                         typedef BOOST_MIRRORED_CLASS(fn_result_type) type;
                 };
 
@@ -261,6 +261,13 @@
                 {
                         typedef BOOST_MIRRORED_CLASS(T) type;
                 };
+
+ BOOST_TYPEOF_NESTED_TYPEDEF_TPL(
+ nested_pointer,
+ base_meta_data::get_address_of(FunctionIndex())
+ );
+
+ typedef typename nested_pointer::type pointer;
                 
         public:
                 // meta-class reflecting the result type of this function
@@ -270,10 +277,6 @@
                         reflected_type<void>
>::type result_type;
 
- typedef BOOST_TYPEOF_TPL(
- base_meta_data::get_address_of(FunctionIndex())
- ) pointer;
-
                 static inline pointer address(void)
                 {
                         return base_meta_data::get_address_of(FunctionIndex());

Modified: sandbox/mirror/libs/mirror/example/factories/inserter.cpp
==============================================================================
--- sandbox/mirror/libs/mirror/example/factories/inserter.cpp (original)
+++ sandbox/mirror/libs/mirror/example/factories/inserter.cpp 2009-05-06 15:42:00 EDT (Wed, 06 May 2009)
@@ -140,7 +140,12 @@
         //
         if(!persons.empty())
         {
- (persons.front().*fn_0::address())("a","b","c","d");
+ (persons.front().*fn_0::address())(
+ BOOST_CTS_LIT("a"),
+ BOOST_CTS_LIT("b"),
+ BOOST_CTS_LIT("c"),
+ BOOST_CTS_LIT("d")
+ );
         }
         //
         // TODO:


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