clang compilation issues
* template keyword for template functions
* sizeof... conversion to bool
* ptr comparation with NULL
type in README fixed