xo-alloc2: bugfix for DX1CollectorIterator
This commit is contained in:
parent
bf27314688
commit
85204e9847
6 changed files with 73 additions and 5 deletions
36
src/alloc2/cmpresult.cpp
Normal file
36
src/alloc2/cmpresult.cpp
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/** @file cmpresult.cpp
|
||||
*
|
||||
* @author Roland Conybeare, Dec 2025
|
||||
**/
|
||||
|
||||
#include "cmpresult.hpp"
|
||||
#include <xo/indentlog/print/tag.hpp>
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
namespace mm {
|
||||
const char *
|
||||
comparison2str(comparison x)
|
||||
{
|
||||
switch (x) {
|
||||
case comparison::invalid:
|
||||
return "?comparison";
|
||||
case comparison::comparable:
|
||||
return "cmp";
|
||||
case comparison::incomparable:
|
||||
return "!cmp";
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cmpresult::display(std::ostream & os) const
|
||||
{
|
||||
os << "<cmpresult "
|
||||
<< xtag("err", err_)
|
||||
<< xtag("cmp", cmp_)
|
||||
<< ">";
|
||||
}
|
||||
} /*namespace mm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end cmpresult.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue