diff --git a/include/xo/alloc2/VisitReason.hpp b/include/xo/alloc2/VisitReason.hpp index 569b02d..38c87c7 100644 --- a/include/xo/alloc2/VisitReason.hpp +++ b/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/src/alloc2/IAllocator_Any.cpp b/src/alloc2/IAllocator_Any.cpp index 9af28ca..f158e47 100644 --- a/src/alloc2/IAllocator_Any.cpp +++ b/src/alloc2/IAllocator_Any.cpp @@ -25,6 +25,7 @@ namespace xo { << ": attempt to call uninitialized" << " IAllocator_Any method" << std::endl; + std::terminate(); }