include/o3tl/typed_flags_set.hxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 558cba561b2c390107000580b16852de626b45c0
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Feb 6 19:33:17 2025 +0500
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Feb 9 09:36:15 2025 +0100

    Make some typed_flags operations constexpr
    
    Change-Id: I226673acb0d98b00387bdb5582ff41469ffbd130
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181308
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/include/o3tl/typed_flags_set.hxx b/include/o3tl/typed_flags_set.hxx
index 413ee9579d4d..b4adbb57d1d7 100644
--- a/include/o3tl/typed_flags_set.hxx
+++ b/include/o3tl/typed_flags_set.hxx
@@ -252,7 +252,7 @@ typename o3tl::typed_flags<typename 
W::Unwrapped::Self>::Wrap operator |(
 }
 
 template<typename E>
-inline typename o3tl::typed_flags<E>::Self operator &=(E & lhs, E rhs) {
+inline constexpr typename o3tl::typed_flags<E>::Self operator &=(E & lhs, E 
rhs) {
     assert(
         o3tl::detail::isNonNegative(
             o3tl::to_underlying(lhs)));
@@ -264,7 +264,7 @@ inline typename o3tl::typed_flags<E>::Self operator &=(E & 
lhs, E rhs) {
 }
 
 template<typename E>
-inline typename o3tl::typed_flags<E>::Self operator &=(
+inline constexpr typename o3tl::typed_flags<E>::Self operator &=(
     E & lhs, typename o3tl::typed_flags<E>::Wrap rhs)
 {
     assert(
@@ -275,7 +275,7 @@ inline typename o3tl::typed_flags<E>::Self operator &=(
 }
 
 template<typename E>
-inline typename o3tl::typed_flags<E>::Self operator |=(E & lhs, E rhs) {
+inline constexpr typename o3tl::typed_flags<E>::Self operator |=(E & lhs, E 
rhs) {
     assert(
         o3tl::detail::isNonNegative(
             o3tl::to_underlying(lhs)));
@@ -287,7 +287,7 @@ inline typename o3tl::typed_flags<E>::Self operator |=(E & 
lhs, E rhs) {
 }
 
 template<typename E>
-inline typename o3tl::typed_flags<E>::Self operator |=(
+inline constexpr typename o3tl::typed_flags<E>::Self operator |=(
     E & lhs, typename o3tl::typed_flags<E>::Wrap rhs)
 {
     assert(
@@ -298,7 +298,7 @@ inline typename o3tl::typed_flags<E>::Self operator |=(
 }
 
 template<typename E>
-inline typename o3tl::typed_flags<E>::Self operator ^=(E & lhs, E rhs) {
+inline constexpr typename o3tl::typed_flags<E>::Self operator ^=(E & lhs, E 
rhs) {
     assert(
         o3tl::detail::isNonNegative(
             o3tl::to_underlying(lhs)));
@@ -310,7 +310,7 @@ inline typename o3tl::typed_flags<E>::Self operator ^=(E & 
lhs, E rhs) {
 }
 
 template<typename E>
-inline typename o3tl::typed_flags<E>::Self operator ^=(
+inline constexpr typename o3tl::typed_flags<E>::Self operator ^=(
     E & lhs, typename o3tl::typed_flags<E>::Wrap rhs)
 {
     assert(

Reply via email to