basic_fields::key_compare is noexcept

fix #704
This commit is contained in:
Vinnie Falco committed 2017-08-01 06:16:26 -07:00
1 parent 6081d6e4cc
commit a7069f184e
2 files changed
+21 -4

No files matched your search

+9 -3
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;