From 4215c2d49f3a1154b8525ebe0dafb6ec238cace9 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Tue, 21 May 2024 12:45:42 -0400 Subject: Change 'LLPredicate::Rule::requires()' to 'mandates()' for C++20. Although 'requires' appears in many comments and some string literals, and 'concept' in a few of each, LLPredicate::Rule appears to be the only use of any new C++20 reserved word in the existing code base. And it seems to be unreferenced. --- indra/llcommon/llpredicate.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'indra') diff --git a/indra/llcommon/llpredicate.h b/indra/llcommon/llpredicate.h index e6c56a5711..205f08421f 100644 --- a/indra/llcommon/llpredicate.h +++ b/indra/llcommon/llpredicate.h @@ -139,10 +139,10 @@ namespace LLPredicate Rule() {} - void require(ENUM e, bool match) - { - mRule.set(e, match); - } + void mandate(ENUM e, bool match) + { + mRule.set(e, match); + } void allow(ENUM e) { @@ -154,10 +154,10 @@ namespace LLPredicate return (mRule && value).someSet(); } - bool requires(const Value value) const - { - return (mRule && value).someSet() && (!mRule && value).noneSet(); - } + bool mandates(const Value value) const + { + return (mRule && value).someSet() && (!mRule && value).noneSet(); + } bool isAmbivalent(const Value value) const { -- cgit v1.2.3