Changeset 3334
- Timestamp:
- 01/30/10 14:05:10 (7 weeks ago)
- Location:
- Core/branches/0075_TR_SCRIPTING
- Files:
-
- 3 modified
-
Event/src/Event_impl.hpp (modified) (1 diff)
-
Scripting/script_arity_conversion.hpp (modified) (2 diffs)
-
Scripting/script_convert_argument.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Core/branches/0075_TR_SCRIPTING/Event/src/Event_impl.hpp
r3330 r3334 34 34 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 35 35 class EventQueue; 36 class EventService; 36 37 class Connection_impl; 37 38 -
Core/branches/0075_TR_SCRIPTING/Scripting/script_arity_conversion.hpp
r3309 r3334 3 3 4 4 #define Q BOOST_PP_ITERATION() 5 typename boost::remove_const< boost::remove_reference<BOOST_PP_CAT(parmType, Q)>::type>::type BOOST_PP_CAT(parm, Q);5 typename boost::remove_const<typename boost::remove_reference<BOOST_PP_CAT(parmType, Q)>::type>::type BOOST_PP_CAT(parm, Q); 6 6 try 7 7 { 8 8 script_convert_argument<typename boost::remove_reference<BOOST_PP_CAT(parmType, Q)>::type> convert; 9 BOOST_PP_CAT(parm, Q) = ( boost::remove_const<boost::remove_reference<BOOST_PP_CAT(parmType, Q)>::type>::type)9 BOOST_PP_CAT(parm, Q) = (typename boost::remove_const<typename boost::remove_reference<BOOST_PP_CAT(parmType, Q)>::type>::type) 10 10 convert(_parms[Q]); 11 11 } … … 13 13 { 14 14 std::stringstream errorMessage; 15 errorMessage << "Bad cast to " << typeid( boost::remove_reference<BOOST_PP_CAT(parmType, Q)>::type).name()15 errorMessage << "Bad cast to " << typeid(typename boost::remove_reference<BOOST_PP_CAT(parmType, Q)>::type).name() 16 16 << " for parameter " << Q << " (" << _e.what() << ")"; 17 17 throw Zen::Utility::runtime_exception(errorMessage.str()); -
Core/branches/0075_TR_SCRIPTING/Scripting/script_convert_argument.hpp
r3309 r3334 46 46 operator()(boost::any& _parm) 47 47 { 48 return boost::any_cast<type name type>(_parm);48 return boost::any_cast<type>(_parm); 49 49 } 50 50 }; … … 61 61 operator()(boost::any& _parm) 62 62 { 63 return boost::any_cast<type name type>(_parm);63 return boost::any_cast<type>(_parm); 64 64 } 65 65 };
