Skip to content

Commit

Permalink
lift change tiral
Browse files Browse the repository at this point in the history
  • Loading branch information
jeageun committed May 23, 2024
1 parent 0c188d8 commit 61ece66
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions include/pando-lib-galois/utility/gptr_monad.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
[&]() { \
ElementType tmp; \
using ReturnType = decltype(tmp.func()); \
ReturnType test = \
pando::GlobalPtr<ReturnType> (ptrComputed##__LINE__ + 4); \
return test; \
pando::GlobalPtr<void> vvec = static_cast<pando::GlobalPtr<void>>(ptrComputed##__LINE__); \
pando::GlobalPtr<std::byte> bvec = static_cast<pando::GlobalPtr<std::byte>>(vvec); \
auto offsetVec = bvec + offsetof(ElementType,m_size); \
auto offsetVVec = static_cast<pando::GlobalPtr<void>>(offsetVec); \
ReturnType desired = *static_cast<pando::GlobalPtr<ReturnType>> (offsetVVec); \
return desired; \
}() : \
[&]() { \
ElementType tmp = *ptrComputed##__LINE__; \
Expand Down

0 comments on commit 61ece66

Please sign in to comment.