Correct for warnings and errors for the VC++ port.

This commit is contained in:
Jason Turner 2009-07-19 03:59:58 +00:00
parent a5a1e3ee1b
commit daacbaa9e0
3 changed files with 6 additions and 6 deletions

View File

@ -100,7 +100,7 @@ namespace chaiscript
* http://www.sgi.com/tech/stl/ReversibleContainer.html * http://www.sgi.com/tech/stl/ReversibleContainer.html
*/ */
template<typename ContainerType> template<typename ContainerType>
ModulePtr reversible_container_type(const std::string &type, ModulePtr m = ModulePtr(new Module())) ModulePtr reversible_container_type(const std::string &, ModulePtr m = ModulePtr(new Module()))
{ {
return m; return m;
} }

View File

@ -25,7 +25,7 @@ namespace chaiscript
template<typename T> template<typename T>
Proxy_Function constructor() Proxy_Function constructor()
{ {
T *f; T *f = 0;
return (build_constructor_(f)); return (build_constructor_(f));
} }
} }
@ -52,10 +52,10 @@ namespace chaiscript
* \todo See if it is possible to make this not be a variadic function * \todo See if it is possible to make this not be a variadic function
*/ */
template<typename Class BOOST_PP_COMMA_IF(n) BOOST_PP_ENUM_PARAMS(n, typename Param) > template<typename Class BOOST_PP_COMMA_IF(n) BOOST_PP_ENUM_PARAMS(n, typename Param) >
Proxy_Function build_constructor_(Class (*f)(BOOST_PP_ENUM_PARAMS(n, Param))) Proxy_Function build_constructor_(Class (*)(BOOST_PP_ENUM_PARAMS(n, Param)))
{ {
typedef boost::shared_ptr<Class> (sig)(BOOST_PP_ENUM_PARAMS(n, Param)); typedef boost::shared_ptr<Class> (sig)(BOOST_PP_ENUM_PARAMS(n, Param));
return Proxy_Function(new Proxy_Function_Impl<sig>(&(constructor_<Class BOOST_PP_COMMA_IF(n) BOOST_PP_ENUM_PARAMS(n, Param)>))); return Proxy_Function(new Proxy_Function_Impl<sig>(boost::function<sig>(&(constructor_<Class BOOST_PP_COMMA_IF(n) BOOST_PP_ENUM_PARAMS(n, Param)>))));
} }
} }

View File

@ -399,13 +399,13 @@ namespace chaiscript
virtual std::vector<Type_Info> get_param_types() const virtual std::vector<Type_Info> get_param_types() const
{ {
Func *f; Func *f = 0;
return build_param_type_list(f); return build_param_type_list(f);
} }
virtual bool types_match(const std::vector<Boxed_Value> &types) const virtual bool types_match(const std::vector<Boxed_Value> &types) const
{ {
Func *f; Func *f = 0;
return compare_types(f, types); return compare_types(f, types);
} }