how can we write a wrapper lexical cast function in order to implement lines like :
int value = lexical_cast<int> (string) I am quite new to programming and was wondering how we can write the function. I don't know how to figure out a template. Also can we write a wrapper function for double too ? Like
double value = lexical_cast2<double> (string) ??