add operator > < == to EmptyType
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@724 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
e4b5d8357f
commit
df24bcb2c0
2 changed files with 19 additions and 9 deletions
|
@ -29,6 +29,22 @@ namespace Loki
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
class EmptyType {};
|
class EmptyType {};
|
||||||
|
|
||||||
|
|
||||||
|
bool operator==(const EmptyType&, const EmptyType&)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator<(const EmptyType&, const EmptyType&)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator>(const EmptyType&, const EmptyType&)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -39,6 +55,9 @@ namespace Loki
|
||||||
#endif // EMPTYTYPE_INC_
|
#endif // EMPTYTYPE_INC_
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.4 2006/10/16 10:38:02 syntheticpp
|
||||||
|
// add operator > < == to EmptyType
|
||||||
|
//
|
||||||
// Revision 1.3 2006/01/16 19:05:09 rich_sposato
|
// Revision 1.3 2006/01/16 19:05:09 rich_sposato
|
||||||
// Added cvs keywords.
|
// Added cvs keywords.
|
||||||
//
|
//
|
||||||
|
|
|
@ -754,15 +754,6 @@ namespace Loki
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const EmptyType&, const EmptyType&)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator<(const EmptyType&, const EmptyType&)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace Loki
|
} // namespace Loki
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue