TX1 node
Diff: Arguments.cpp
- Revision:
- 20:635b0fd3d1bd
- Parent:
- 19:e65ed29fd4d1
--- a/Arguments.cpp Thu Jun 16 08:37:15 2016 +0000 +++ b/Arguments.cpp Thu Jun 16 19:21:33 2016 +0000 @@ -79,6 +79,12 @@ return strtol(argv[index], &pEnd, 10); } +template<> unsigned short Arguments::getArg<unsigned short>(void) { + index++; + char *pEnd; + return (unsigned short)strtol(argv[index], &pEnd, 10); +} + template<> const char* Arguments::getArg<const char*>(void) { index++; return argv[index];