SHARE
TWEET

Untitled

a guest Jan 23rd, 2013 22 Never
  1. #include <sstream>
  2.  
  3. template<typename T>
  4. T getValue(const std::string& source) {
  5.   std::stringstream s(source);
  6.   T value;
  7.   s >> value;
  8.   return value;
  9. }
RAW Paste Data
Top