Skip to content

Commit

Permalink
Restoring original assign behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Dec 4, 2024
1 parent 9a32cc1 commit 56d2777
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/comms/util/details/AssignHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ class AssignHelper
template <typename T, typename TIter, typename... TParams>
static void assignInternal(T& obj, TIter from, TIter to, StdSpanTag<TParams...>)
{
// using ObjType = typename std::decay<decltype(obj)>::type;
// using ConstPointerType = typename ObjType::const_pointer;
// using PointerType = typename ObjType::pointer;
// auto fromPtr = const_cast<PointerType>(reinterpret_cast<ConstPointerType>(&(*from)));
// auto toPtr = const_cast<PointerType>(reinterpret_cast<ConstPointerType>(&(*to)));
using ObjType = typename std::decay<decltype(obj)>::type;
using ConstPointerType = typename ObjType::const_pointer;
using PointerType = typename ObjType::pointer;
auto fromPtr = const_cast<PointerType>(reinterpret_cast<ConstPointerType>(&(*from)));
auto toPtr = const_cast<PointerType>(reinterpret_cast<ConstPointerType>(&(*to)));
assignInternal(obj, from, to, UsePtrSizeConstructorTag<TParams...>());
}
};
Expand Down

0 comments on commit 56d2777

Please sign in to comment.