Commit 016ec9e0 authored by maxka's avatar maxka
Browse files

Merge branch...

Merge branch 'feature/proper-generic-copyOrReference-in-BoxConstrainedQuadraticFunctional' into 'master'

Properly forward constructor to CopyOrReference members.

See merge request !11
parents 0dc98a25 2ec25017
Pipeline #16679 passed with stage
in 8 minutes and 6 seconds
......@@ -254,10 +254,11 @@ public:
using LowerObstacle = std::decay_t<L>;
using UpperObstacle = std::decay_t<U>;
BoxConstrainedQuadraticFunctional(const Matrix& matrix, const Vector& linearPart, const LowerObstacle& lower, const UpperObstacle& upper) :
Base(matrix, linearPart),
template <class MM, class VV, class LL, class UU>
BoxConstrainedQuadraticFunctional(MM&& matrix, VV&& linearPart, LL&& lower, UU&& upper) :
Base(std::forward<MM>(matrix), std::forward<VV>(linearPart)),
Range operator()(const Vector& v) const
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