From 9e08c6932f6511427698462eb4f1c1b03d7b362d Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Sun, 1 Nov 2015 12:17:33 +0100 Subject: [PATCH] extra Address constructor added --- include/address.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/address.h b/include/address.h index 4d2f42a..a78ef3a 100644 --- a/include/address.h +++ b/include/address.h @@ -104,6 +104,12 @@ public: } } + /** + * Constructor based on std::string + * @param address + */ + Address(const std::string &address) : Address(address.data()) {} + /** * Destructor */