Make the std::rel_ops namespace visible without qualification so that we can get operator!= from operator==, and operators >=, <=, and > from operator<. Needed for disambiguation with new string classes. r=scc

This commit is contained in:
waterson%netscape.com 2000-04-27 06:37:06 +00:00
Родитель 01c202403e
Коммит fa2c7aa35c
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -202,6 +202,14 @@ typedef PRUint16 PRUnichar;
#define HAVE_CPP_NAMESPACE_STD
#define HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL
// Other platforms declare standard implementations for operators
// !=, >, >=, and <= based on == and <. VC++ chooses to put these in
// a special namespace. We'll make it seem like they're *not* in a
// special namespace.
namespace std { namespace rel_ops {} }
using namespace std::rel_ops;
/* VC++ is special and doesn't use naked min() and max() */
#undef NS_MIN
#define NS_MIN std::_cpp_min