From 2b82fc3e1a3263fe64d2c6ca230813d0b82b610b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Mon, 5 Dec 2016 14:17:15 +0100 Subject: [PATCH] made chat_message's operator<< inline, so there are no linker errors --- chat_messages.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat_messages.hpp b/chat_messages.hpp index 7686304..8664356 100644 --- a/chat_messages.hpp +++ b/chat_messages.hpp @@ -37,7 +37,7 @@ namespace chat { return sizeof(char) + _content.size() + sizeof(char); } }; - std::ostream& operator<<(std::ostream& os, const chat_message& msg) + inline std::ostream& operator<<(std::ostream& os, const chat_message& msg) { return os << msg.get(); } }