Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vlntb committed Jan 3, 2025
1 parent 2cdabe6 commit f371d88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/xrpl/basics/IntrusivePointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ class WeakIntrusive
template <class T>
class SharedWeakUnion
{
// Tagged pointer. Low bit determines if this is a strong or a weak
// pointer. The low bit must be masked to zero when converting back to a
// pointer. If the low bit is '1', this is a weak pointer.
static_assert(
alignof(T) >= 2,
"Bad alignment: Combo pointer requires low bit to be zero");
Expand Down

0 comments on commit f371d88

Please sign in to comment.