Skip to content

Commit

Permalink
Merge pull request RemedyIT#306 from jwillemsen/jwi-bitmaskenum
Browse files Browse the repository at this point in the history
Add coment
  • Loading branch information
jwillemsen committed Aug 7, 2023
2 parents 4eb2079 + 64b6c34 commit 6e5a2e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/idl4/bitmask/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ int main (int /*argc*/, char* /*argv*/[])

MyBitMask my_bitmask = MyBitMask::flag0;

// static_cast is necessary when we map to an `enum class`, when we map to an `enum` the static_cast
// is not necessary but that puts the enum members into the containing namespace
if (static_cast<bool>(my_bitmask & MyBitMask::flag0))
{
TAOX11_TEST_INFO << "Flag my_bitmask correctly set" << std::endl;
Expand Down

0 comments on commit 6e5a2e7

Please sign in to comment.