forked from bblanchon/ArduinoJson
Fixed error when both ARDUINOJSON_ENABLE_STD_STREAM
and ARDUINOJSON_ENABLE_ARDUINO_STREAM
are set to 1
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
namespace ArduinoJson {
|
||||
namespace Internals {
|
||||
|
||||
struct StdStreamFuncs {
|
||||
struct StdStreamTraits {
|
||||
class Iterator {
|
||||
std::istream& _stream;
|
||||
|
||||
@ -32,11 +32,11 @@ struct StdStreamFuncs {
|
||||
};
|
||||
|
||||
template <typename TStream>
|
||||
struct StringFuncs<TStream,
|
||||
// match any type that is derived from std::istream:
|
||||
typename TypeTraits::EnableIf<TypeTraits::IsBaseOf<
|
||||
std::istream, typename TypeTraits::RemoveReference<
|
||||
TStream>::type>::value>::type>
|
||||
: StdStreamFuncs {};
|
||||
struct StringTraits<TStream,
|
||||
// match any type that is derived from std::istream:
|
||||
typename TypeTraits::EnableIf<TypeTraits::IsBaseOf<
|
||||
std::istream, typename TypeTraits::RemoveReference<
|
||||
TStream>::type>::value>::type>
|
||||
: StdStreamTraits {};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user