Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Renamed ‘memcpy’ wrapper to sg_memcpy, changed ‘std::memcpy’ to
‘shogun::memcpy’ using sed.
  • Loading branch information
radsn23 committed Mar 15, 2017
1 parent 17907f4 commit f269f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ template <class T> void sg_generic_free(T* ptr)
}

template <class InputIt, class OutputIt>
SG_FORCED_INLINE void* memcpy(InputIt dest, OutputIt src, size_t count)
SG_FORCED_INLINE void* sg_memcpy(InputIt dest, OutputIt src, size_t count)
{
return std::memcpy(static_cast<void*>(dest), static_cast<const void*>(src), count);
return shogun::memcpy(static_cast<void*>(dest), static_cast<const void*>(src), count);
}

#endif //TRACE_MEMORY_ALLOCS
Expand Down

0 comments on commit f269f25

Please sign in to comment.