Changeset 16836 in vbox
- Timestamp:
- Feb 17, 2009 1:00:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r16831 r16836 35 35 #include "VBox/xml.h" 36 36 37 #include <iostream>38 #include <sstream>39 40 37 using namespace std; 41 38 … … 218 215 //////////////////////////////////////////////////////////////////////////////// 219 216 220 template <class T> 221 inline 222 com::Utf8Str toString(const T& val) 223 { 224 // @todo optimize 225 std::ostringstream ss; 226 ss << val; 227 return Utf8Str(ss.str().c_str()); 217 template<class T> inline com::Utf8Str toString(const T &val); 218 219 // specializations 220 template<> com::Utf8Str toString<uint32_t>(const uint32_t &val) 221 { 222 return Utf8StrFmt("%RI16", val); 223 } 224 225 template<> com::Utf8Str toString<uint64_t>(const uint64_t &val) 226 { 227 return Utf8StrFmt("%RI32", val); 228 228 } 229 229
Note:
See TracChangeset
for help on using the changeset viewer.