Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 533 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 533 Bytes

min-max-function-overload

C++ implementation of a variadic templated function of max(), min() for integral and floating point types, and strings, by overloading the function call operator.

Requirements

The cmake file compiles with -std=c++14 (but it would be fine also with -std=c++11).

Install and Run Example

$ 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