C++ porting templates to Red hat enterprise linux version 5
- by mkal
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
template <class OutType>
bool getVAL(OutType &value_out, const std::string &key) {
return false;
}
int main (int argc, char*argv[])
{
mode_t a;
getVAL(a, "abc");
}
test.cpp:6: error: ISO C++ forbids declaration of ‘parameter’ with no type
test.cpp: In function ‘int main(int, char**)’:
test.cpp:13: error: no matching function for call to ‘getVAL(mode_t&, const char [4])’