[RFA,v3,21/23] Introduce gdb_argv, a class wrapper for buildargv
Commit Message
Tom Tromey <tom@tromey.com> writes:
> + bool operator!= (nullptr_t)
> + {
> + return m_argv != NULL;
> + }
> +
> + bool operator== (nullptr_t)
> + {
> + return m_argv == NULL;
> + }
nullptr_t breaks the build for mingw target, and I pushed the following
patch to fix it.
@@ -1,3 +1,7 @@
+2017-08-04 Yao Qi <yao.qi@linaro.org>
+
+ * utils.h (gdb_argv): Add namespace std for nullptr_t.
+
2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
* MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
@@ -185,12 +185,12 @@ public:
return m_argv + count ();
}
- bool operator!= (nullptr_t)
+ bool operator!= (std::nullptr_t)
{
return m_argv != NULL;
}
- bool operator== (nullptr_t)
+ bool operator== (std::nullptr_t)
{
return m_argv == NULL;
}