From c57f9ba18e41b4c981a63acdd3bee5ebd23bfb2b Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 29 Jul 2017 03:23:07 -0700 Subject: [PATCH] basic_fields::value_type is not copyable fix #697 --- CHANGELOG.md | 1 + include/boost/beast/http/fields.hpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cbe928e..30e27f0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ Version 92: * Fix typo in test/CMakeLists.txt +* basic_fields::value_type is not copyable -------------------------------------------------------------------------------- diff --git a/include/boost/beast/http/fields.hpp b/include/boost/beast/http/fields.hpp index 77571081..50a62888 100644 --- a/include/boost/beast/http/fields.hpp +++ b/include/boost/beast/http/fields.hpp @@ -85,6 +85,12 @@ public: field f_; public: + /// Constructor (deleted) + value_type(value_type const&) = delete; + + /// Assignment (deleted) + value_type& operator=(value_type const&) = delete; + /// Returns the field enum, which can be @ref field::unknown field name() const;