Declare 'nullptr_t' manually in WFTaskFactory. (#1669)

This commit is contained in:
xiehan
2024-12-13 21:30:55 +08:00
committed by GitHub
parent 6fdf73dba0
commit 6ee1163672
2 changed files with 4 additions and 2 deletions

View File

@@ -23,7 +23,6 @@
#include <sys/types.h>
#include <sys/uio.h>
#include <time.h>
#include <stddef.h>
#include <stdint.h>
#include <utility>
#include <functional>
@@ -424,6 +423,10 @@ public:
return task;
}
private:
/* Some compilers don't declare 'nullptr_t' although required by C++11. */
using nullptr_t = std::nullptr_t;
public:
/* The following functions are for overload resolution only. */

View File

@@ -23,7 +23,6 @@
#include <errno.h>
#include <time.h>
#include <netdb.h>
#include <stddef.h>
#include <stdio.h>
#include <string>
#include <functional>