-
- Downloads
There was a problem fetching the pipeline summary.
Add a wrapper storing either a copy or reference
parent
8b4a4472
No related branches found
No related tags found
Pipeline #
dune/solvers/common/copyorreference.hh
0 → 100644
-
For GCC 4.9.2.:
In line 39 and following (and, analogously, in line 70 and following) I get errors that these methods (
constexpr const Type& get() const
andconstexpr Type& get()
) cannot be overloaded. Droppingconstexpr
resolves this issue, though I'm not quite sure whether that's what you intended. -
The
constexpr
is intended and correct C++14. We want theconst
and the non-const
method to beconstexpr
. However, in C++11constexpr
impliesconst
hence both methods would beconst
which is not allowed. While we require C++14 which makes the code correct, this language change is not implemented for some of the older supported compilers. Hence the proper workaround is to drop theconstexpr
for the non-const
methods. -
mentioned in issue #9
Please register or sign in to comment