From 95d319c1f8b01e27a88fac1820c1b94a5f52ec59 Mon Sep 17 00:00:00 2001
From: Simon Praetorius <simon.praetorius@tu-dresden.de>
Date: Mon, 6 May 2019 11:25:20 +0200
Subject: [PATCH] allow proxies to be passed to the assigner classes as output
 argument

---
 src/amdis/operations/Assigner.hpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/amdis/operations/Assigner.hpp b/src/amdis/operations/Assigner.hpp
index 920975bf..826b7c2c 100644
--- a/src/amdis/operations/Assigner.hpp
+++ b/src/amdis/operations/Assigner.hpp
@@ -7,7 +7,7 @@ namespace AMDiS
     struct assign
     {
       template <class T, class S>
-      constexpr void operator()(T const& from, S& to) const
+      constexpr void operator()(T const& from, S&& to) const
       {
         to = from;
       }
@@ -16,7 +16,7 @@ namespace AMDiS
     struct plus_assign
     {
       template <class T, class S>
-      constexpr void operator()(T const& from, S& to) const
+      constexpr void operator()(T const& from, S&& to) const
       {
         to += from;
       }
@@ -25,7 +25,7 @@ namespace AMDiS
     struct minus_assign
     {
       template <class T, class S>
-      constexpr void operator()(T const& from, S& to) const
+      constexpr void operator()(T const& from, S&& to) const
       {
         to -= from;
       }
@@ -34,7 +34,7 @@ namespace AMDiS
     struct multiplies_assign
     {
       template <class T, class S>
-      constexpr void operator()(T const& from, S& to) const
+      constexpr void operator()(T const& from, S&& to) const
       {
         to *= from;
       }
@@ -43,7 +43,7 @@ namespace AMDiS
     struct divides_assign
     {
       template <class T, class S>
-      constexpr void operator()(T const& from, S& to) const
+      constexpr void operator()(T const& from, S&& to) const
       {
         to /= from;
       }
-- 
GitLab