Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_pdata
Commits
14f60f54
Commit
14f60f54
authored
Mar 15, 2017
by
incardon
Browse files
Fixing compilation on old compilers
parent
aceb1e88
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Vector/vector_dist.hpp
View file @
14f60f54
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment