Commit 81850794 authored by incardon's avatar incardon
Browse files

Changing form of get on map vector

parent 8a861515
......@@ -778,7 +778,8 @@ namespace openfpm
*
*/
template <unsigned int p, typename r_type=decltype(std::declval<grid_cpu<1,T,Memory,layout>>().template get<p>(grid_key_dx<1>(0)))> inline r_type get(size_t id)
template <unsigned int p>
inline auto get(size_t id) -> decltype(base.template get<p>(grid_key_dx<1>(0)))
{
#ifdef SE_CLASS2
check_valid(this,8);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment