Skip to content

Commit

Permalink
Fix for trivially copyable to match copy from const src to (non const…
Browse files Browse the repository at this point in the history
…) dest
  • Loading branch information
biddisco committed May 10, 2016
1 parent 94bf4e5 commit bc28f2b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hpx/parallel/util/transfer.hpp
Expand Up @@ -76,7 +76,9 @@ namespace hpx { namespace parallel { namespace util
inline typename std::conditional<
std::is_assignable<Dest&, Source&>::value,
typename pointer_category<
typename std::remove_reference<Source>::type, Dest
typename std::remove_const<
typename std::remove_reference<Source>::type>::type,
Dest
>::type,
general_pointer_tag
>::type
Expand All @@ -85,7 +87,9 @@ namespace hpx { namespace parallel { namespace util
typedef typename std::conditional<
std::is_assignable<Dest&, Source&>::value,
typename pointer_category<
typename std::remove_reference<Source>::type, Dest
typename std::remove_const<
typename std::remove_reference<Source>::type>::type,
Dest
>::type,
general_pointer_tag
>::type category_type;
Expand Down

0 comments on commit bc28f2b

Please sign in to comment.