diff --git a/wrap/Module.cpp b/wrap/Module.cpp index 0c351a4f9..86cc90ef1 100644 --- a/wrap/Module.cpp +++ b/wrap/Module.cpp @@ -276,7 +276,7 @@ Module::Module(const string& interfacePath, /* ************************************************************************* */ template void verifyArguments(const vector& validArgs, const map& vt) { - typedef map::value_type Name_Method; + typedef typename map::value_type Name_Method; BOOST_FOREACH(const Name_Method& name_method, vt) { const T& t = name_method.second; BOOST_FOREACH(const ArgumentList& argList, t.argLists) { @@ -293,7 +293,7 @@ void verifyArguments(const vector& validArgs, const map& vt) { /* ************************************************************************* */ template void verifyReturnTypes(const vector& validtypes, const map& vt) { - typedef map::value_type Name_Method; + typedef typename map::value_type Name_Method; BOOST_FOREACH(const Name_Method& name_method, vt) { const T& t = name_method.second; BOOST_FOREACH(const ReturnValue& retval, t.returnVals) {