Chris--A / PrintEx

An extension to the Arduino Print library, and much, much more...
GNU General Public License v3.0
61 stars 16 forks source link

Bugs found in Streaming & printx functionality. #17

Closed Chris--A closed 8 years ago

Chris--A commented 8 years ago

PrintEx based objects are using the global overload instead of their built in methods. Check is_base_of for correct functionality.

Also when streaming a char it is printed as ascii values, not the actual char. Currently they are forced through OStream.h#L84 and the correct overload is here: OStream.h#L108.

However, SFINAE removes the correct overload because T does not meet the requirement of !is_fundamental<T>::value. An exception needs to be made for char's