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: ...@@ -254,10 +254,11 @@ public:
using LowerObstacle = std::decay_t<L>; using LowerObstacle = std::decay_t<L>;
using UpperObstacle = std::decay_t<U>; using UpperObstacle = std::decay_t<U>;
BoxConstrainedQuadraticFunctional(const Matrix& matrix, const Vector& linearPart, const LowerObstacle& lower, const UpperObstacle& upper) : template <class MM, class VV, class LL, class UU>
Base(matrix, linearPart), BoxConstrainedQuadraticFunctional(MM&& matrix, VV&& linearPart, LL&& lower, UU&& upper) :
lower_(lower), Base(std::forward<MM>(matrix), std::forward<VV>(linearPart)),
upper_(upper) lower_(std::forward<LL>(lower)),
{} {}
Range operator()(const Vector& v) const 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