Added warning to Server::resource

This commit is contained in:
eidheim 2017-01-02 12:47:42 +01:00
commit fa8c381a4f

View file

@ -152,6 +152,7 @@ namespace SimpleWeb {
} }
}; };
public: public:
/// Warning: do not add or remove resources after start() is called
std::map<regex_orderable, std::map<std::string, std::map<regex_orderable, std::map<std::string,
std::function<void(std::shared_ptr<typename ServerBase<socket_type>::Response>, std::shared_ptr<typename ServerBase<socket_type>::Request>)> > > resource; std::function<void(std::shared_ptr<typename ServerBase<socket_type>::Response>, std::shared_ptr<typename ServerBase<socket_type>::Request>)> > > resource;