Commit 2ec25017 authored by Max Kahnt's avatar Max Kahnt
Browse files

Properly forward constructor to CopyOrReference members.

parent b196aa9a
Pipeline #15350 passed with stage
in 5 minutes and 42 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),
lower_(lower),
upper_(upper)
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)),
lower_(std::forward<LL>(lower)),
upper_(std::forward<UU>(upper))
{}
Range operator()(const Vector& v) const
......
Supports Markdown
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