summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-15 11:04:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-15 12:31:50 +0000
commitfed145be5231c3045098e5a0942f0b9d3c229460 (patch)
tree2ce4c6d2e0c12dd5cf937e192acd5711f6f2ee1d /o3tl
parent23a0d1ff82f7ff81a131dba812d908a7a44a5386 (diff)
Fix binary ops with two o3tl::type_flags<E>::Wrap params
(the original ones would never have been picked due to how template argument deduction works) Change-Id: I5a08c763d721d8e11b5a10af2344a6a24bb0b9b2 Reviewed-on: https://gerrit.libreoffice.org/18583 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/qa/test-typed_flags.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/o3tl/qa/test-typed_flags.cxx b/o3tl/qa/test-typed_flags.cxx
index d2a4154fd71b..0612fc190cbe 100644
--- a/o3tl/qa/test-typed_flags.cxx
+++ b/o3tl/qa/test-typed_flags.cxx
@@ -47,6 +47,10 @@ public:
nHint &= ConfigurationChangedHint::ONE;
CPPUNIT_ASSERT( bool(nHint &= ConfigurationChangedHint::ONE) );
+ CPPUNIT_ASSERT(
+ !((ConfigurationChangedHint::NONE | ConfigurationChangedHint::ONE)
+ & (ConfigurationChangedHint::NONE
+ | ConfigurationChangedHint::TWO)));
}
// Change the following lines only, if you add, remove or rename