Skip to content
Snippets Groups Projects
Commit 2ec25017 authored by Max Kahnt's avatar Max Kahnt
Browse files

Properly forward constructor to CopyOrReference members.

parent b196aa9a
No related branches found
No related tags found
1 merge request!11Properly forward constructor to CopyOrReference members.
Pipeline #15350 passed
...@@ -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)),
upper_(std::forward<UU>(upper))
{} {}
Range operator()(const Vector& v) const Range operator()(const Vector& v) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment