| 372 | typename alloc |
| 373 | > |
| 374 | inline const T string_cast ( |
| 375 | const std::basic_string<charT,traits,alloc>& str |
| 376 | ) |
| 377 | { |
| 378 | COMPILE_TIME_ASSERT(is_pointer_type<T>::value == false); |
| 379 | return string_cast_helper<T>::cast(str); |
| 380 | } |
| 381 | |
| 382 | template <typename T> |
| 383 | inline const T string_cast (const char* str){ return string_cast<T>(std::string(str)); } |