Skip to content
This repository has been archived by the owner on Jan 7, 2019. It is now read-only.

[architecture] Fix implicit conversion of Flags #230

Merged
merged 3 commits into from
Mar 25, 2017

Commits on Mar 23, 2017

  1. Configuration menu
    Copy the full SHA
    8cae63c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b28bed2 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2017

  1. [architecture] Make bool conversion operator of Flags explicit

    The bool conversion of xpcc::Register and thus all derived flags classes
    is implemented in terms of "explicit operator bool()". This fixes issues
    with function overloading on flags parameters.
    
    Implicit bool conversion without an explicit cast is only applied in
    the following contexts:
    * conditions of if, while, for, do-while statements
    * logical operators (&&, ||)
    * negation (operator !)
    * static_assert
    
    This will probably break user code that relies on implicit bool
    conversion of flags in return statements or in assignments to bool
    variables.
    chris-durand committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    ad206d9 View commit details
    Browse the repository at this point in the history