Move address << operator implementation out of header

This commit is contained in:
Jason Rhinelander 2020-05-19 22:37:28 -03:00
parent 65aa5940be
commit 9a283a148c
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#include "base64.h" #include "base64.h"
#include <tuple> #include <tuple>
#include <limits> #include <limits>
#include <iostream>
namespace lokimq { namespace lokimq {
@ -328,4 +329,6 @@ address address::ipc_curve(std::string path, std::string pubkey) {
return a; return a;
} }
std::ostream& operator<<(std::ostream& o, const address& a) { return o << a.full_address(); }
} }

View File

@ -183,6 +183,6 @@ struct address {
}; };
// Outputs address.full_address() when sent to an ostream. // 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);
} }