aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/cast.cpp
Commit message (Collapse)AuthorAgeFilesLines
* utils: Add bool specialization to cast::from_str()Aaron Rossetto2020-03-181-0/+25
| | | | | | | This adds a specialization to `uhd::cast::from_str()` to handle `bool` as a target type and interpret strings like 'y', 'Y', 'n', 'No', 'True', 'False', etc. as Boolean values, as well as the traditional '0' and '1' (which also work).
* utils: cast: Add from_str() typecastMartin Braun2019-11-261-0/+39
This is the inverse to std::to_string(), and we can overload it with UHD-internal types.