Changeset 1766 for code/branches/core3/src/util/Convert.h
- Timestamp:
- Sep 11, 2008, 12:25:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/util/Convert.h
r1754 r1766 483 483 /////////////////////////////////////// 484 484 485 // delegate conversion from const char* viastd::string485 // delegate conversion from const char* to std::string 486 486 template <class ToType> 487 487 struct ConverterExplicit<ToType, const char*> 488 488 { 489 // convert from const char* via std::string490 489 static bool convert(ToType* output, const char* input) 491 490 { 492 return conversion::ConverterSS<ToType, std::string, 0>::convert(output, input);491 return ConverterExplicit<ToType, std::string>::convert(output, input); 493 492 } 494 493 }; … … 499 498 static bool convert(std::string* output, const char input) 500 499 { 501 *output = std::string( input, 1);500 *output = std::string(1, input); 502 501 return true; 503 502 } … … 507 506 static bool convert(std::string* output, const unsigned char input) 508 507 { 509 *output = std::string( input, 1);508 *output = std::string(1, input); 510 509 return true; 511 510 }
Note: See TracChangeset
for help on using the changeset viewer.