built-in r-value return values can't be assigned:

This fixes the following warning:

  warning: ‘const’ type qualifier on return type has no effect [-Wignored-qualifiers]
This commit is contained in:
Vinnie Falco
2017-11-29 07:56:42 -08:00
parent 8414dbf73b
commit 13b9d1bd92
3 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
Version 149:
* built-in r-value return values can't be assigned
--------------------------------------------------------------------------------
Version 148: Version 148:
* Install codecov on codecov CI targets only * Install codecov on codecov CI targets only

View File

@@ -102,7 +102,7 @@ public:
value_type& operator=(value_type const&) = delete; value_type& operator=(value_type const&) = delete;
/// Returns the field enum, which can be @ref field::unknown /// Returns the field enum, which can be @ref field::unknown
field const field
name() const; name() const;
/// Returns the field name as a string /// Returns the field name as a string

View File

@@ -291,7 +291,7 @@ value_type(field name,
template<class Allocator> template<class Allocator>
inline inline
field const field
basic_fields<Allocator>:: basic_fields<Allocator>::
value_type:: value_type::
name() const name() const