Menu

#194 Missing #include <cstddef> for std::nullptr_t

medit
open
nobody
None
5
2018-01-08
2018-01-08
No

In moo/moopython/moopython-utils.h, when std::nullptr_t is used, it requires #include <cstddef></cstddef> which is missing. Consider the following patch:

@@ -67,6 +67,7 @@ void          moo_python_remove_path        (const cha
 #define return_Int(v)   return PyInt_FromLong (v)

 #ifdef __cplusplus
+#include <cstddef>
 const std::nullptr_t moo_nullptr = nullptr;
 #else
 #define moo_nullptr NULL

Discussion


Log in to post a comment.

MongoDB Logo MongoDB