Changeset 3334

Show
Ignore:
Timestamp:
01/30/10 14:05:10 (7 weeks ago)
Author:
trichards
Message:

Fixed a few syntax errors caught by gcc.

Location:
Core/branches/0075_TR_SCRIPTING
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • Core/branches/0075_TR_SCRIPTING/Event/src/Event_impl.hpp

    r3330 r3334  
    3434//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
    3535class EventQueue; 
     36class EventService; 
    3637class Connection_impl; 
    3738 
  • Core/branches/0075_TR_SCRIPTING/Scripting/script_arity_conversion.hpp

    r3309 r3334  
    33 
    44#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); 
     5typename boost::remove_const<typename boost::remove_reference<BOOST_PP_CAT(parmType, Q)>::type>::type BOOST_PP_CAT(parm, Q); 
    66    try 
    77    { 
    88        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) 
    1010            convert(_parms[Q]); 
    1111    } 
     
    1313    { 
    1414        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() 
    1616            << " for parameter " << Q << " (" << _e.what() << ")"; 
    1717        throw Zen::Utility::runtime_exception(errorMessage.str()); 
  • Core/branches/0075_TR_SCRIPTING/Scripting/script_convert_argument.hpp

    r3309 r3334  
    4646    operator()(boost::any& _parm) 
    4747    { 
    48         return boost::any_cast<typename type>(_parm); 
     48        return boost::any_cast<type>(_parm); 
    4949    } 
    5050}; 
     
    6161    operator()(boost::any& _parm) 
    6262    { 
    63         return boost::any_cast<typename type>(_parm); 
     63        return boost::any_cast<type>(_parm); 
    6464    } 
    6565};