ArduinoSort icon indicating copy to clipboard operation
ArduinoSort copied to clipboard

C++11 possiblity to omit `sizeOfArray`

Open Floessie opened this issue 7 years ago • 1 comments

Hi,

there could be a possibility to omit the sizeOfArray parameter with C++11. Here is the relevant code snippet on StackOverflow. As it's missing a const, here is another example (see "Alternative C++ 11 implementation").

HTH, Flössie

Floessie avatar Apr 26 '18 08:04 Floessie

This would be very useful. Apparently C++11 is the default in Arduino IDE since 1.6.6 (released 4 years ago), so I think it would be viable to do this.

emilv avatar Nov 26 '19 10:11 emilv