update the docs/Breaking-Changes.md

This commit is contained in:
dota17 2020-05-22 18:50:54 +08:00
parent ba06ac4986
commit 8883e36c6e
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
## HEAD ##
* Throws an exception when trying to parse a negative number as an unsigned integer.
* Supports the `as<int8_t>`/`as<uint8_t>`, which throws an exception when the value exceeds the range of `int8_t`/`uint8_t`.
## 0.6.0 ##

View File

@ -130,7 +130,7 @@ ConvertStreamTo(std::stringstream& stream, T& rhs) {
}
template <typename T>
typename std::enable_if<!(std::is_same<T,unsigned char>::value ||
typename std::enable_if<!(std::is_same<T, unsigned char>::value ||
std::is_same<T, signed char>::value), bool>::type
ConvertStreamTo(std::stringstream& stream, T& rhs) {
if ((stream >> std::noskipws >> rhs) && (stream >> std::ws).eof()) {