Skip to content

Commit

Permalink
Fix #ifdef NDEBUG spanning too much code
Browse files Browse the repository at this point in the history
  • Loading branch information
guusw committed Oct 9, 2024
1 parent 8fda752 commit f88bf09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crdt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,9 @@ class CRDT : public std::enable_shared_from_this<CRDT<K, V, MergeRuleType, Chang
}
std::cout << std::endl << std::endl;
}
#else
constexpr void print_data() const {}
#endif

// Accessors for testing
// Complexity: O(1)
Expand Down Expand Up @@ -764,9 +767,6 @@ class CRDT : public std::enable_shared_from_this<CRDT<K, V, MergeRuleType, Chang
std::cout << "[non-printable]";
}
}
#else
constexpr void print_data() const {}
#endif

/// Applies a list of changes to reconstruct the CRDT state.
///
Expand Down

0 comments on commit f88bf09

Please sign in to comment.