Skip to content
Snippets Groups Projects

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

Merged Praetorius, Simon requested to merge issue/assigner_proxies into master
1 file
+ 5
5
Compare changes
  • Side-by-side
  • Inline
@@ -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;
}
Loading