Skip to content

Commit

Permalink
Declare 'nullptr_t' manually in WFTaskFactory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Dec 13, 2024
1 parent 4e04485 commit e8ff6c6
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 @@ -21,7 +21,6 @@
#define _WFTASKFACTORY_H_

#include <time.h>
#include <stddef.h>
#include <functional>
#include "PlatformSocket.h"
#include "URIParser.h"
Expand Down Expand Up @@ -384,6 +383,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 @@ -18,7 +18,6 @@
Li Yingxin ([email protected])
*/

#include <stddef.h>
#include <stdio.h>
#include <errno.h>
#include <string>
Expand Down

0 comments on commit e8ff6c6

Please sign in to comment.