Fix MSVC2013 builds

This commit is contained in:
Jason Turner
2015-06-02 17:35:31 -06:00
parent bacf546dff
commit 38a83e3e56
4 changed files with 16 additions and 6 deletions

View File

@@ -12,6 +12,7 @@
namespace chaiscript {
namespace dispatch {
namespace detail {
template<typename Class, typename ... Param>
struct Constructor
{
@@ -34,6 +35,19 @@ namespace chaiscript {
Ret (Class::*m_func)(Param...) const;
};
template<typename Ret, typename ... Param>
struct Fun_Caller
{
Fun_Caller(Ret( * t_func)(Param...) ) : m_func(t_func) {}
template<typename ... Inner>
Ret operator()(Inner&& ... inner) const {
return (m_func)(std::forward<Inner>(inner)...);
}
Ret(*m_func)(Param...);
};
template<typename Ret, typename Class, typename ... Param>
struct Caller
{