maniacbug / StandardCplusplus

Standard C++ for Arduino (port of uClibc++)
588 stars 182 forks source link

enable_if is not defined in type_traits header #28

Closed me21 closed 1 year ago

me21 commented 4 years ago

According to https://en.cppreference.com/w/cpp/types/enable_if it should be in the type_traits header file. But currently the lib doesn't mention enable_if at all.

The same goes for is_arithmetic (https://en.cppreference.com/w/cpp/types/is_arithmetic).

maniacbug commented 1 year ago

Yeah, enable_if is a C++11 construct. This library predates C++11. Likewise, enable_if isn't implemented upstream either.