| 248 | typename T |
| 249 | > |
| 250 | const std::wstring cast_to_wstring ( |
| 251 | const T& item |
| 252 | ) |
| 253 | { |
| 254 | std::basic_ostringstream<wchar_t> sout; |
| 255 | sout << item; |
| 256 | if (!sout) |
| 257 | throw cast_to_string_error(); |
| 258 | return sout.str(); |
| 259 | } |
| 260 | #endif |
| 261 | |
| 262 | // ---------------------------------------------------------------------------------------- |