summaryrefslogtreecommitdiffstats
path: root/components/policy/core/common/policy_namespace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/policy/core/common/policy_namespace.cc')
-rw-r--r--components/policy/core/common/policy_namespace.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/policy/core/common/policy_namespace.cc b/components/policy/core/common/policy_namespace.cc
index 0fac9ca..33a9992 100644
--- a/components/policy/core/common/policy_namespace.cc
+++ b/components/policy/core/common/policy_namespace.cc
@@ -4,6 +4,8 @@
#include "components/policy/core/common/policy_namespace.h"
+#include <tuple>
+
namespace policy {
PolicyNamespace::PolicyNamespace() {}
@@ -26,8 +28,8 @@ PolicyNamespace& PolicyNamespace::operator=(const PolicyNamespace& other) {
}
bool PolicyNamespace::operator<(const PolicyNamespace& other) const {
- return domain < other.domain ||
- (domain == other.domain && component_id < other.component_id);
+ return std::tie(domain, component_id) <
+ std::tie(other.domain, other.component_id);
}
bool PolicyNamespace::operator==(const PolicyNamespace& other) const {