From fa8c381a4fff1eca2747b83c6e21209b93eb1f3c Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 2 Jan 2017 12:47:42 +0100 Subject: [PATCH] Added warning to Server::resource --- server_http.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server_http.hpp b/server_http.hpp index 43e32d2..e64beec 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -152,10 +152,11 @@ namespace SimpleWeb { } }; public: - std::map::Response>, std::shared_ptr::Request>)> > > resource; + /// Warning: do not add or remove resources after start() is called + std::map::Response>, std::shared_ptr::Request>)> > > resource; - std::map::Response>, std::shared_ptr::Request>)> > default_resource; std::function::Request>, const boost::system::error_code&)> on_error;