C implementation of a variadic templated function of max(), min() for integral and floating point types, and strings, by overloading the function call operator.
The cmake file compiles with -std=c 14
(but it would be fine also with -std=c 11
).
$ git clone https://github.com/massimo-marino/min-max-function-overload.git
$ cd min-max-function-overload
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd src
$ cd unitTests
$ ./unitTests