diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-06 14:58:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-07 14:53:36 +0200 |
commit | adaf5229afa37331da6fac2c4711494f53a2e067 (patch) | |
tree | 00c9955e9f6a73eb5b75c3faf41142d4634cde45 /o3tl | |
parent | 65a00c71a5e3a8cdd74ac1a557208e183e23cf01 (diff) |
bug in typed flags
/home/noel/libo2/o3tl/qa/test-typed_flags.cxx:50:52:
error: invalid argument type 'typename o3tl::typed_flags<ConfigurationChangedHint>::Wrap' to unary expression
ConfigurationChangedHint nHint2 = nHint & ~(ConfigurationChangedHint::ONE | ConfigurationChangedHint::TWO);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Change-Id: Ia03e1e7d6afff0bdbb87e82ec076d5ffb820afb2
Diffstat (limited to 'o3tl')
-rw-r--r-- | o3tl/qa/test-typed_flags.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/o3tl/qa/test-typed_flags.cxx b/o3tl/qa/test-typed_flags.cxx index d5b5ff7f112f..3fe327e55b9e 100644 --- a/o3tl/qa/test-typed_flags.cxx +++ b/o3tl/qa/test-typed_flags.cxx @@ -46,6 +46,9 @@ public: nHint &= ConfigurationChangedHint::ONE; CPPUNIT_ASSERT( bool(nHint &= ConfigurationChangedHint::ONE) ); + + ConfigurationChangedHint nHint2 = nHint & ~(ConfigurationChangedHint::ONE | ConfigurationChangedHint::TWO); + } // Change the following lines only, if you add, remove or rename |