From a7069f184ece8af21b168602a39b59cadfd9f3b5 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Tue, 1 Aug 2017 06:16:24 -0700 Subject: [PATCH] basic_fields::key_compare is noexcept fix #704 --- CHANGELOG.md | 13 ++++++++++++- include/boost/beast/http/fields.hpp | 12 +++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58b22dae..e305b354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 -------------------------------------------------------------------------------- diff --git a/include/boost/beast/http/fields.hpp b/include/boost/beast/http/fields.hpp index 50a62888..927ec049 100644 --- a/include/boost/beast/http/fields.hpp +++ b/include/boost/beast/http/fields.hpp @@ -113,7 +113,9 @@ public: /// Returns `true` if lhs is less than rhs using a strict ordering template 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 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;