Skip to content

Commit

Permalink
Switch from nullptr_t to std::nullptr_t type for portability
Browse files Browse the repository at this point in the history
  • Loading branch information
victorreijgwart committed Nov 21, 2024
1 parent 3de0323 commit d7a20b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ChunkedNdtreeNodePtr {

// Emulate null check semantics
operator bool() const { return node_.has_value(); } // NOLINT
bool operator==(nullptr_t) noexcept { return !node_.has_value(); }
bool operator==(std::nullptr_t) noexcept { return !node_.has_value(); }

private:
std::optional<NodeRef> node_{};
Expand Down

0 comments on commit d7a20b3

Please sign in to comment.