mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
output of xbool
This commit is contained in:
parent
34a6777f49
commit
897cf6f848
@ -30,7 +30,15 @@ namespace ngcore
|
||||
bool IsTrue () const { return state == 2; }
|
||||
bool IsMaybe () const { return state == 1; }
|
||||
bool IsFalse () const { return state == 0; }
|
||||
friend ostream & operator<< (ostream & ost, xbool xb);
|
||||
};
|
||||
|
||||
|
||||
static char output[] = "0?1";
|
||||
inline ostream & operator<< (ostream & ost, xbool xb)
|
||||
{
|
||||
return ost << output[xb.state];
|
||||
}
|
||||
|
||||
} // namespace ngcore
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user