Skip to content
Snippets Groups Projects
Commit d36ba2ee authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

[cornerpoint] simplify determination of GeometryParamType

parent 7188f2b2
No related branches found
No related tags found
1 merge request!1011Feature/support cpgrid
......@@ -75,8 +75,7 @@ class CCSubControlVolume
// be hardcoded to `Geometry&&` again.
using Element = typename GV::template Codim<0>::Entity;
using GeometryRT = decltype(std::declval<Element>().geometry());
using GeometryRTWithoutRef = typename std::remove_reference<GeometryRT>::type;
static constexpr bool grtIsReference = !std::is_same<GeometryRT, GeometryRTWithoutRef>::value;
static constexpr bool grtIsReference = std::is_lvalue_reference<GeometryRT>::value;
using GeometryParamType = std::conditional_t<grtIsReference, Geometry, Geometry&&>;
public:
//! export the type used for global coordinates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment