Commit 14f60f54 authored by incardon's avatar incardon

Fixing compilation on old compilers

parent aceb1e88
......@@ -425,7 +425,21 @@ public:
* \return the position of the element in space
*
*/
inline auto getPos(size_t vec_key) const -> decltype(v_pos.template get<0>(vec_key))
inline auto getPos(size_t vec_key) -> decltype(v_pos.template get<0>(vec_key))
{
return v_pos.template get<0>(vec_key);
}
/*! \brief Get the position of an element
*
* see the vector_dist iterator usage to get an element key
*
* \param vec_key element
*
* \return the position of the element in space
*
*/
inline auto getPos(size_t vec_key) const -> const decltype(v_pos.template get<0>(vec_key))
{
return v_pos.template get<0>(vec_key);
}
......@@ -460,6 +474,21 @@ public:
return v_prp.template get<id>(vec_key.getKey());
}
/*! \brief Get the property of an element
*
* see the vector_dist iterator usage to get an element key
*
* \tparam id property id
* \param vec_key vector element
*
* \return return the selected property of the vector element
*
*/
template<unsigned int id> inline auto getProp(size_t vec_key) -> decltype(v_prp.template get<id>(vec_key))
{
return v_prp.template get<id>(vec_key);
}
/*! \brief Get the property of an element
*
* see the vector_dist iterator usage to get an element key
......
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