basic_fields::key_compare is noexcept

fix #704
This commit is contained in:
Vinnie Falco
2017-08-01 06:16:24 -07:00
parent 6081d6e4cc
commit a7069f184e
2 changed files with 21 additions and 4 deletions

View File

@ -1,3 +1,15 @@
Version 98:
* basic_fields::key_compare is noexcept
--------------------------------------------------------------------------------
Version 97:
* Update redirect
--------------------------------------------------------------------------------
Version 96:
* Move bench/ to test/
@ -9,7 +21,6 @@ Version 96:
* Add bench-zlib
* Faster zlib tests
* Less compression on websocket test
* Update redirect
--------------------------------------------------------------------------------

View File

@ -113,7 +113,9 @@ public:
/// Returns `true` if lhs is less than rhs using a strict ordering
template<class String>
bool
operator()(String const& lhs, value_type const& rhs) const
operator()(
String const& lhs,
value_type const& rhs) const noexcept
{
if(lhs.size() < rhs.name_string().size())
return true;
@ -125,7 +127,9 @@ public:
/// Returns `true` if lhs is less than rhs using a strict ordering
template<class String>
bool
operator()(value_type const& lhs, String const& rhs) const
operator()(
value_type const& lhs,
String const& rhs) const noexcept
{
if(lhs.name_string().size() < rhs.size())
return true;
@ -136,7 +140,9 @@ public:
/// Returns `true` if lhs is less than rhs using a strict ordering
bool
operator()(value_type const& lhs, value_type const& rhs) const
operator()(
value_type const& lhs,
value_type const& rhs) const noexcept
{
if(lhs.name_string().size() < rhs.name_string().size())
return true;