A default Reader class for argument classes.
More...
#include <args.hxx>
|
|
template<typename T > |
| std::enable_if< std::is_integral< T >::value &&!std::is_same< T, bool >::value &&!std::is_same< T, char >::value &&!std::is_same< T, signedchar >::value &&!std::is_same< T, unsignedchar >::value, bool >::type | ParseNumericValue (const std::string &value, T &destination) |
| |
|
template<typename T > |
| std::enable_if<!std::is_integral< T >::value||std::is_same< T, bool >::value||std::is_same< T, char >::value||std::is_same< T, signedchar >::value||std::is_same< T, unsignedchar >::value, bool >::type | ParseNumericValue (const std::string &value, T &destination) |
| |
|
template<typename T > |
| std::enable_if<!std::is_assignable< T, std::string >::value, bool >::type | operator() (const std::string &name, const std::string &value, T &destination) |
| |
|
template<typename T > |
| std::enable_if< std::is_assignable< T, std::string >::value, bool >::type | operator() (const std::string &, const std::string &value, T &destination) |
| |
A default Reader class for argument classes.
If destination type is assignable to std::string it uses an assignment to std::string. Otherwise ValueReader simply uses a std::istringstream to read into the destination type, and raises a ParseError if there are any characters left.
The documentation for this struct was generated from the following file: