Explore various methods for converting types to strings and vice-versa in C++ during this CppNow conference talk. Delve into traditional functions like atoi and strtol, modern C++11 solutions such as std::stoi, and Boost library offerings like boost::lexical_cast. Examine the strengths and weaknesses of each approach, including error handling, fallback mechanisms, and locale support. Discover boost::coerce, a Google Summer of Code project, and learn how it complements existing options with improved speed and extensibility. Gain insights into the design process behind boost::coerce and see practical examples of its usage. If time allows, investigate customization points and the library's relationship to Spirit.
Overview
Syllabus
Jeroen Habraken: Type to string conversions, and vice-versa
Taught by
CppNow