From 351e84b04ecc574d3b4879b49a89586569d38492 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Mon, 13 Apr 2020 16:29:24 +0200 Subject: [PATCH] Disable copy and move. --- src/env_base.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/env_base.hpp b/src/env_base.hpp index 6bf1957..b5bc0e9 100644 --- a/src/env_base.hpp +++ b/src/env_base.hpp @@ -48,6 +48,8 @@ namespace duck { typedef std::ptrdiff_t difference_type; EnvBase() = default; + EnvBase (const EnvBase&) = delete; + EnvBase (EnvBase&&) = delete; virtual ~EnvBase() noexcept = default; std::string_view operator[] (std::string_view name) const noexcept;