зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
01c202403e
Коммит
fa2c7aa35c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче