now forbids copying and moving

This commit is contained in:
Bob Polis 2020-10-30 13:26:23 +01:00
parent 191aafa32b
commit 34aaee7509

View File

@ -22,6 +22,12 @@ class requester {
requester();
~requester();
// forbid copying and moving
requester(const requester&) = delete;
requester& operator=(const requester&) = delete;
requester(requester&&) = delete;
requester& operator=(requester&&) = delete;
// perform a http get request
std::string get(const std::string& url);