From fed145be5231c3045098e5a0942f0b9d3c229460 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 15 Sep 2015 11:04:14 +0200 Subject: Fix binary ops with two o3tl::type_flags::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 Tested-by: Stephan Bergmann --- o3tl/qa/test-typed_flags.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'o3tl') 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 -- cgit