Skip to content

Commit

Permalink
Declare 'nullptr_t' manually in WFTaskFactory. (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim authored Dec 13, 2024
1 parent 6fdf73d commit 6ee1163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/factory/WFTaskFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -424,6 +423,10 @@ class WFTaskFactory
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. */

Expand Down
1 change: 0 additions & 1 deletion src/factory/WFTaskFactory.inl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <errno.h>
#include <time.h>
#include <netdb.h>
#include <stddef.h>
#include <stdio.h>
#include <string>
#include <functional>
Expand Down

0 comments on commit 6ee1163

Please sign in to comment.