Added setting nullptr for Table's key

This commit is contained in:
Dmitriy Lekomtsev 2020-07-29 18:35:11 +03:00
parent 1c4917bead
commit bc4b9aa163
3 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@
#include "booleanset.h"
#include "decimalfield.h"
#include "numericfield.h"
#include "voidfield.h"
/**
* Set up namespace

View File

@ -138,6 +138,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()); }
/**
* Is a certain field set in the table

View File

@ -53,10 +53,10 @@
#include "amqpcpp/decimalfield.h"
#include "amqpcpp/stringfield.h"
#include "amqpcpp/booleanset.h"
#include "amqpcpp/voidfield.h"
#include "amqpcpp/fieldproxy.h"
#include "amqpcpp/table.h"
#include "amqpcpp/array.h"
#include "amqpcpp/voidfield.h"
// envelope for publishing and consuming
#include "amqpcpp/metadata.h"