"test/vscode:/vscode.git/clone" did not exist on "3cd5eed63785d5a62de45b4eeca6bcd24d7fcf76"
Commit 472bb80c authored by jbeder's avatar jbeder
Browse files

Fixed the return value of the integral conversion functions, and also unset...

Fixed the return value of the integral conversion functions, and also unset the dec flag so it reads other bases (just a temporary fix, since we're officially supposed to read binary too)
parent ca79c3da
......@@ -21,8 +21,8 @@ namespace YAML
#define YAML_MAKE_STREAM_CONVERT(type) \
inline bool Convert(const std::string& input, type& output) { \
std::stringstream stream(input); \
stream >> output; \
return !stream.fail(); \
stream.unsetf(std::ios::dec); \
return stream >> output; \
}
YAML_MAKE_STREAM_CONVERT(char)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment