| 434 | // ------------- |
| 435 | |
| 436 | class wchar_t_assign_helper |
| 437 | { |
| 438 | public: |
| 439 | wchar_t_assign_helper ( |
| 440 | const wchar_t* str_ |
| 441 | ) : str(str_) {} |
| 442 | |
| 443 | template <typename T> |
| 444 | operator T () const |
| 445 | { |
| 446 | return string_cast<T>(str); |
| 447 | } |
| 448 | |
| 449 | private: |
| 450 | |
| 451 | const wchar_t* str; |
| 452 | }; |
| 453 | |
| 454 | // ------------- |
| 455 |