diff --git a/src/Grid/cuda/map_grid_cuda_ker.cuh b/src/Grid/cuda/map_grid_cuda_ker.cuh
index 83a8590189d536288ad61d898916272b5fe4a80e..65dc3021f420d8b37e90301df9704d8ecc4bdf4b 100644
--- a/src/Grid/cuda/map_grid_cuda_ker.cuh
+++ b/src/Grid/cuda/map_grid_cuda_ker.cuh
@@ -509,7 +509,7 @@ public:
 	}
 
 	template <unsigned int p, typename ids_type>
-	__device__ __host__ inline const auto get(const grid_key_dx<dim,ids_type> & v1) const -> decltype(ggk.template get<p>(v1))
+	__device__ __host__ inline auto get(const grid_key_dx<dim,ids_type> & v1) const -> decltype(ggk.template get<p>(v1))
 	{
 		return ggk.template get<p>(v1);
 	}