|
OpenWalnut 1.3.1
|
Conversion class to convert a string to a given target type. More...
#include <WStringUtils.h>
Static Public Member Functions | |
| static Target | fromString (const std::string &from) |
| Convert a given string to the target type. | |
Conversion class to convert a string to a given target type.
We place this in separate classes as we are not allowed to specialize function templates. But we need specializations for certain cases.
| Target | target type |
Definition at line 67 of file WStringUtils.h.
| static Target string_utils::fromStringImpl< Target >::fromString | ( | const std::string & | from | ) | [inline, static] |
Convert a given string to the target type.
If this fails, a exception is thrown.
| WTypeMismatch | if source string cannot be converted to target type value. |
| from | source string |
Definition at line 78 of file WStringUtils.h.
Referenced by string_utils::fromString().
1.7.4