From ed62771667824ddbaef6e7dc1a3154a594e88cf3 Mon Sep 17 00:00:00 2001 From: Michael van der Werve Date: Thu, 15 Oct 2020 09:54:50 +0200 Subject: [PATCH] fix nullptr_t compile error --- include/amqpcpp/table.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/amqpcpp/table.h b/include/amqpcpp/table.h index c701ec9..8be349f 100644 --- a/include/amqpcpp/table.h +++ b/include/amqpcpp/table.h @@ -14,6 +14,7 @@ */ #include "field.h" #include "fieldproxy.h" +#include #include #include @@ -138,7 +139,7 @@ public: Table &set(const std::string &name, int64_t value) { return set(name, LongLong(value)); } Table &set(const std::string &name, const std::string &value) { return set(name, LongString(value)); } Table &set(const std::string &name, const char *value) { return set(name, LongString(std::string(value))); } - Table &set(const std::string &name, nullptr_t) { return set(name, VoidField()); } + Table &set(const std::string &name, std::nullptr_t) { return set(name, VoidField()); } /** * Is a certain field set in the table