From: Mikko Rasa Date: Tue, 19 Apr 2016 07:31:27 +0000 (+0300) Subject: Hide Http::Server destructor in the library X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f839e84e68924129a9fa5941ad82e4e9cc1def4d;p=libs%2Fnet.git Hide Http::Server destructor in the library Otherwise sigc::signal destructor will be emitted in the including file, requiring explicit linking with libsigc++. --- diff --git a/source/http/server.cpp b/source/http/server.cpp index ed3a2b9..9bdfa61 100644 --- a/source/http/server.cpp +++ b/source/http/server.cpp @@ -23,6 +23,11 @@ Server::Server(unsigned port): sock.listen(*addr, 8); } +// Avoid emitting sigc::signal destructor in files including server.h +Server::~Server() +{ +} + unsigned Server::get_port() const { const Net::SockAddr &addr = sock.get_local_address(); diff --git a/source/http/server.h b/source/http/server.h index e07ee55..04c2d06 100644 --- a/source/http/server.h +++ b/source/http/server.h @@ -37,6 +37,8 @@ private: public: Server(unsigned); + ~Server(); + unsigned get_port() const; void use_event_dispatcher(IO::EventDispatcher *); void delay_response(Response &);