If statement failing to evaluate condition
问题 I have a basic class that containers two enumerators, one for input and one for output. It has two member functions which are both static. The first function is just a static function that returns a value based on the input. It will call the second function which is a constexpr function template that will return the constexpr values. You can see the full class here. class Foo { public: enum Input { INPUT_0 = 0, INPUT_1, INPUT_2 }; enum Output { OUTPUT_0 = 123, OUTPUT_1 = 234, OUTPUT_2 = 345 }