Commit dfa9b663 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/assigner_proxies' into 'master'

allow proxies to be passed to the assigner classes as output argument

See merge request !55
parents e01dcaf2 95d319c1
...@@ -7,7 +7,7 @@ namespace AMDiS ...@@ -7,7 +7,7 @@ namespace AMDiS
struct assign struct assign
{ {
template <class T, class S> 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; to = from;
} }
...@@ -16,7 +16,7 @@ namespace AMDiS ...@@ -16,7 +16,7 @@ namespace AMDiS
struct plus_assign struct plus_assign
{ {
template <class T, class S> 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; to += from;
} }
...@@ -25,7 +25,7 @@ namespace AMDiS ...@@ -25,7 +25,7 @@ namespace AMDiS
struct minus_assign struct minus_assign
{ {
template <class T, class S> 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; to -= from;
} }
...@@ -34,7 +34,7 @@ namespace AMDiS ...@@ -34,7 +34,7 @@ namespace AMDiS
struct multiplies_assign struct multiplies_assign
{ {
template <class T, class S> 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; to *= from;
} }
...@@ -43,7 +43,7 @@ namespace AMDiS ...@@ -43,7 +43,7 @@ namespace AMDiS
struct divides_assign struct divides_assign
{ {
template <class T, class S> 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; to /= from;
} }
......
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