From f1cb359a307700d0d74fb8e7a2b5227932dd8664 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Sun, 20 Jun 2010 12:56:34 +0000 Subject: [PATCH] String may be const type so disable assignment [SVN r63135] --- include/boost/io/detail/quoted_manip.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/io/detail/quoted_manip.hpp b/include/boost/io/detail/quoted_manip.hpp index d915521..13cfc35 100644 --- a/include/boost/io/detail/quoted_manip.hpp +++ b/include/boost/io/detail/quoted_manip.hpp @@ -57,6 +57,9 @@ namespace boost quoted_proxy(String s_, Char escape_, Char delim_) : string(s_), escape(escape_), delim(delim_) {} + private: + // String may be a const type, so disable the assignment operator + quoted_proxy& operator=(const quoted_proxy&); // = deleted }; // abstract away difference between proxies with const or non-const basic_strings