From 34aaee7509d23dc1059cac0120d351554158d141 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Fri, 30 Oct 2020 13:26:23 +0100 Subject: [PATCH] now forbids copying and moving --- requester.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/requester.hpp b/requester.hpp index ca70fe0..a4392f3 100644 --- a/requester.hpp +++ b/requester.hpp @@ -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);