Skip to content

Commit

Permalink
Stop assuming the type name of a user-defined function
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed May 14, 2014
1 parent 56e236a commit 1e4d2bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vexcl/function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ VEX_FUNCTION_V1(diff_cube, double(double, double),
VEXCL_FUNCTION_NTH_ARG_NAME(n, args));

#define VEXCL_FUNCTION_DEFINE_DEP(z, data, dep) \
BOOST_PP_CAT(vex_function_, dep)::define(src);
typedef decltype(dep) BOOST_PP_CAT(dep, _type); \
BOOST_PP_CAT(dep, _type)::define(src);

#define VEX_FUNCTION_SINK(rtype, func_name, nargs, args, deps, body) \
struct vex_function_##func_name \
Expand Down

0 comments on commit 1e4d2bc

Please sign in to comment.