From 9a283a148c9d451be9f4f20705187469585fdf46 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Tue, 19 May 2020 22:37:28 -0300 Subject: [PATCH] Move address << operator implementation out of header --- lokimq/address.cpp | 3 +++ lokimq/address.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lokimq/address.cpp b/lokimq/address.cpp index d172407..9c3d07d 100644 --- a/lokimq/address.cpp +++ b/lokimq/address.cpp @@ -4,6 +4,7 @@ #include "base64.h" #include #include +#include namespace lokimq { @@ -328,4 +329,6 @@ address address::ipc_curve(std::string path, std::string pubkey) { return a; } +std::ostream& operator<<(std::ostream& o, const address& a) { return o << a.full_address(); } + } diff --git a/lokimq/address.h b/lokimq/address.h index eb097ad..6aa0179 100644 --- a/lokimq/address.h +++ b/lokimq/address.h @@ -183,6 +183,6 @@ struct address { }; // Outputs address.full_address() when sent to an ostream. -std::ostream& operator<<(std::ostream& o, const address& a) { return o << a.full_address(); } +std::ostream& operator<<(std::ostream& o, const address& a); }