Skip to content
Snippets Groups Projects
Commit b6dedbae authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[NL] fix MSVC compilation error

parent 22f11180
No related branches found
No related tags found
1 merge request!1314Named Functions
...@@ -33,7 +33,7 @@ double call_(void* function, std::vector<double> const& arguments) ...@@ -33,7 +33,7 @@ double call_(void* function, std::vector<double> const& arguments)
return (*fct)(args[Indices]...); return (*fct)(args[Indices]...);
} }
using CallerFunction = decltype(&call_<>); typedef double (*CallerFunction) (void*, std::vector<double> const&);
//! Helps instantiating the call_() function. //! Helps instantiating the call_() function.
template <int... Indices> template <int... Indices>
...@@ -82,7 +82,7 @@ void delete_(void* function) ...@@ -82,7 +82,7 @@ void delete_(void* function)
delete fct; delete fct;
} }
using DeleterFunction = decltype(&delete_<>); typedef void (*DeleterFunction) (void*);
//! Helps instantiating the delete_() function. //! Helps instantiating the delete_() function.
template <int... Indices> template <int... Indices>
...@@ -131,7 +131,7 @@ void* copy_(void* function) ...@@ -131,7 +131,7 @@ void* copy_(void* function)
return new std::function<double(typename Double<Indices>::type...)>(*fct); return new std::function<double(typename Double<Indices>::type...)>(*fct);
} }
using CopierFunction = decltype(&copy_<>); typedef void* (*CopierFunction) (void*);
//! Helps instantiating the copy_() function. //! Helps instantiating the copy_() function.
template <int... Indices> template <int... Indices>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment