From e98d36845a623a242eaf0d7a5b8b128f6c3d1522 Mon Sep 17 00:00:00 2001
From: Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>
Date: Tue, 2 Jun 2015 12:26:41 -0400
Subject: [PATCH] utils: Make most FlagPack methods const

Refs #74376

Change-Id: I869e3afd01a9aeab1ce5ce80f17eb71147875883
---
 src/typedefs.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/typedefs.h b/src/typedefs.h
index 9f49ad01..c4a220ed 100644
--- a/src/typedefs.h
+++ b/src/typedefs.h
@@ -88,11 +88,11 @@ public:
       return *this;
    }
 
-   FlagPack<T> operator&(const T& other) {
+   FlagPack<T> operator&(const T& other) const {
       return FlagPack<T>(m_Flags & static_cast<int>(other));
    }
 
-   FlagPack<T> operator&(const FlagPack<T>& other) {
+   FlagPack<T> operator&(const FlagPack<T>& other) const {
       return FlagPack<T>(m_Flags & other.m_Flags);
    }
 
@@ -101,23 +101,23 @@ public:
       return *this;
    }
 
-   bool operator!=(const T& other) {
+   bool operator!=(const T& other) const {
       return  m_Flags != static_cast<int>(other);
    }
 
-   bool operator==(const T& other) {
+   bool operator==(const T& other) const {
       return  m_Flags == static_cast<int>(other);
    }
 
-   bool operator==(const FlagPack<T>& other) {
+   bool operator==(const FlagPack<T>& other) const {
       return  m_Flags == other.m_Flags;
    }
 
-   bool operator!() {
+   bool operator!() const {
       return !m_Flags;
    }
 
-   operator bool() {
+   operator bool() const {
       return m_Flags != 0;
    }
 
-- 
GitLab