fix "no viable conversion from ... to 'bool'"
fix "type 'char' cannot be used prior to '::'"