Skip to content

Commit

Permalink
use complete raw_ponter_cast for sfinae
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Mar 8, 2025
1 parent 84c51d8 commit 812110b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/multi/adaptors/cufft.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class cached_plan {
}
};

template<typename In, class Out, dimensionality_type D = In::rank::value, std::enable_if_t<!multi::has_get_allocator<In>::value, int> =0, typename = decltype(raw_pointer_cast(std::declval<In const&>().base()))>
template<typename In, class Out, dimensionality_type D = In::rank::value, std::enable_if_t<!multi::has_get_allocator<In>::value, int> =0, typename = decltype(::thrust::raw_pointer_cast(std::declval<In const&>().base()))>
auto dft(std::array<bool, +D> which, In const& in, Out&& out, int sgn)
->decltype(cufft::cached_plan<D>{which, in.layout(), out.layout()}.execute(in.base(), out.base(), sgn), std::forward<Out>(out)) {
return cufft::cached_plan<D>{which, in.layout(), out.layout()}.execute(in.base(), out.base(), sgn), std::forward<Out>(out); }
Expand Down

0 comments on commit 812110b

Please sign in to comment.