Changeset 2426 for trunk/yat/utility/utility.h
- Timestamp:
- Feb 13, 2011, 6:06:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/utility.h
r2386 r2426 62 62 OutputIterator result); 63 63 64 /** 65 \brief convert T to a string 66 67 T is supposed to be a numerical type. 68 69 \since new in yat 0.8 70 */ 71 template<typename T> 72 std::string convert(T input); 64 73 65 74 /** … … 259 268 260 269 // template implementations 270 template<typename T> 271 std::string convert(T input) 272 { 273 std::ostringstream ss; 274 ss << input; 275 return ss.str(); 276 } 277 278 261 279 template<typename T> 262 280 T convert(const std::string& s)
Note: See TracChangeset
for help on using the changeset viewer.