Commit fc9ff0ce authored by Max Lyon's avatar Max Lyon

minor coding style change

parent 122b292b
......@@ -142,14 +142,14 @@ using is_ovm_iterator = std::is_base_of<BaseIterator<typename std::remove_const<
// so we can use range-for, e.g. for(const auto &vh: mesh.vertices()) works.
template<class I>
typename std::enable_if<is_ovm_iterator<I>::value, I>::type
begin(const std::pair<I, I> &iterpair)
begin(const std::pair<I, I>& iterpair)
{
return iterpair.first;
}
template<class I>
typename std::enable_if<is_ovm_iterator<I>::value, I>::type
end(const std::pair<I, I> &iterpair)
end(const std::pair<I, I>& iterpair)
{
return iterpair.second;
}
......
......@@ -26,8 +26,8 @@ TEST_F(HexahedralMeshBase, HexVertexIterTest) {
TEST_F(HexahedralMeshBase, RangeForTest) {
// no EXPECTs here, if it compiles, it'll work.
generateHexahedralMesh(mesh_);
for (const auto &vh: mesh_.vertices()) {}
const auto &constref = mesh_;
for (const auto &vh: constref.vertices()) {}
for (const auto& vh: mesh_.vertices()) {}
const auto& constref = mesh_;
for (const auto& vh: constref.vertices()) {}
}
#endif
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