diff --git a/xo-alloc2/include/xo/alloc2/VisitReason.hpp b/xo-alloc2/include/xo/alloc2/VisitReason.hpp index 569b02d3..38c87c77 100644 --- a/xo-alloc2/include/xo/alloc2/VisitReason.hpp +++ b/xo-alloc2/include/xo/alloc2/VisitReason.hpp @@ -45,6 +45,9 @@ namespace xo { enum code code_; }; + inline bool operator==(VisitReason x, VisitReason y) { return x.code() == y.code(); } + inline bool operator!=(VisitReason x, VisitReason y) { return x.code() != y.code(); } + } /*namespace mm*/ } /*namespace xo*/ diff --git a/xo-alloc2/src/alloc2/IAllocator_Any.cpp b/xo-alloc2/src/alloc2/IAllocator_Any.cpp index 9af28ca5..f158e47c 100644 --- a/xo-alloc2/src/alloc2/IAllocator_Any.cpp +++ b/xo-alloc2/src/alloc2/IAllocator_Any.cpp @@ -25,6 +25,7 @@ namespace xo { << ": attempt to call uninitialized" << " IAllocator_Any method" << std::endl; + std::terminate(); }