Skip to content

Commit

Permalink
big fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JossWhittle committed Sep 5, 2016
1 parent 9c159c8 commit 6c48341
Show file tree
Hide file tree
Showing 2 changed files with 365 additions and 370 deletions.
8 changes: 5 additions & 3 deletions MEL_deepcopy_experimental.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,12 @@ namespace MEL {

template<typename P>
inline enable_if_pointer<P> transport(P &ptr, const int len) {
typedef typename std::remove_pointer<P>::type T; // where P == T*, find T
if (len > 0 && ptr != nullptr) {
typedef typename std::remove_pointer<P>::type T; // where P == T*, find T

offset += len * sizeof(T);
transporter.transport(ptr, len);
offset += len * sizeof(T);
transporter.transport(ptr, len);
}
};

template<typename T>
Expand Down
Loading

0 comments on commit 6c48341

Please sign in to comment.