From 13b9d1bd929c4e054312664ffa561fab06bf2814 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 29 Nov 2017 07:56:42 -0800 Subject: [PATCH] built-in r-value return values can't be assigned: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following warning: warning: ‘const’ type qualifier on return type has no effect [-Wignored-qualifiers] --- CHANGELOG.md | 6 ++++++ include/boost/beast/http/fields.hpp | 2 +- include/boost/beast/http/impl/fields.ipp | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c712134e..1c53909e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Version 149: + +* built-in r-value return values can't be assigned + +-------------------------------------------------------------------------------- + Version 148: * Install codecov on codecov CI targets only diff --git a/include/boost/beast/http/fields.hpp b/include/boost/beast/http/fields.hpp index 1fe95684..59cb338b 100644 --- a/include/boost/beast/http/fields.hpp +++ b/include/boost/beast/http/fields.hpp @@ -102,7 +102,7 @@ public: value_type& operator=(value_type const&) = delete; /// Returns the field enum, which can be @ref field::unknown - field const + field name() const; /// Returns the field name as a string diff --git a/include/boost/beast/http/impl/fields.ipp b/include/boost/beast/http/impl/fields.ipp index 0e3d48ec..d7d233a2 100644 --- a/include/boost/beast/http/impl/fields.ipp +++ b/include/boost/beast/http/impl/fields.ipp @@ -291,7 +291,7 @@ value_type(field name, template inline -field const +field basic_fields:: value_type:: name() const