Created
May 2, 2017 14:02
-
-
Save Siapran/cc857c8b72abb3e120f10913ecb16a1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ g++ -std=c++98 main.cpp -o main | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:513:39: error: ‘IsBaseOf’ is not a member of ‘ArduinoJson::TypeTraits’ | |
typename TypeTraits::EnableIf<TypeTraits::IsBaseOf< | |
^~~~~~~~~~ | |
ArduinoJson.h:513:39: error: ‘IsBaseOf’ is not a member of ‘ArduinoJson::TypeTraits’ | |
ArduinoJson.h:514:44: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type | |
std::istream, typename TypeTraits::RemoveReference< | |
^~~~~~~~~~~~~~~ | |
ArduinoJson.h:514:59: error: expected template-argument before ‘<’ token | |
std::istream, typename TypeTraits::RemoveReference< | |
^ | |
ArduinoJson.h:514:59: error: expected ‘>’ before ‘<’ token | |
ArduinoJson.h:515:23: error: template argument 1 is invalid | |
TStream>::type>::value>::type> | |
^ | |
ArduinoJson.h:515:23: error: template argument 2 is invalid | |
ArduinoJson.h:515:31: error: template argument 2 is invalid | |
TStream>::type>::value>::type> | |
^ | |
ArduinoJson.h:515:38: error: expected unqualified-id before ‘>’ token | |
TStream>::type>::value>::type> | |
^ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:1370:36: error: expected template-name before ‘<’ token | |
struct IsVariant : IsBaseOf<JsonVariantBase<T>, T> { | |
^ | |
ArduinoJson.h:1370:36: error: expected ‘{’ before ‘<’ token | |
ArduinoJson.h:1571:49: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type | |
TypeTraits::IsSame<typename TypeTraits::RemoveReference<T>::type, | |
^~~~~~~~~~~~~~~ | |
ArduinoJson.h:1571:64: error: expected template-argument before ‘<’ token | |
TypeTraits::IsSame<typename TypeTraits::RemoveReference<T>::type, | |
^ | |
ArduinoJson.h:1571:64: error: expected ‘>’ before ‘<’ token | |
ArduinoJson.h:1572:18: error: wrong number of template arguments (1, should be 2) | |
JsonArray>::value, | |
^ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:350:16: note: provided for ‘template<class T, class U> struct ArduinoJson::TypeTraits::IsSame’ | |
struct IsSame { | |
^~~~~~ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:1573:20: error: template argument 1 is invalid | |
JsonArray &>::type | |
^ | |
ArduinoJson.h:1580:49: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type | |
TypeTraits::IsSame<typename TypeTraits::RemoveReference<T>::type, | |
^~~~~~~~~~~~~~~ | |
ArduinoJson.h:1580:64: error: expected template-argument before ‘<’ token | |
TypeTraits::IsSame<typename TypeTraits::RemoveReference<T>::type, | |
^ | |
ArduinoJson.h:1580:64: error: expected ‘>’ before ‘<’ token | |
ArduinoJson.h:1581:24: error: wrong number of template arguments (1, should be 2) | |
const JsonArray>::value, | |
^ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:350:16: note: provided for ‘template<class T, class U> struct ArduinoJson::TypeTraits::IsSame’ | |
struct IsSame { | |
^~~~~~ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:1582:26: error: template argument 1 is invalid | |
const JsonArray &>::type | |
^ | |
ArduinoJson.h:1583:9: error: ‘template<class T> int ArduinoJson::JsonVariant::as() const’ cannot be overloaded | |
as() const { | |
^~ | |
ArduinoJson.h:1574:9: error: with ‘template<class T> int ArduinoJson::JsonVariant::as() const’ | |
as() const { | |
^~ | |
ArduinoJson.h:1589:49: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type | |
TypeTraits::IsSame<typename TypeTraits::RemoveReference<T>::type, | |
^~~~~~~~~~~~~~~ | |
ArduinoJson.h:1589:64: error: expected template-argument before ‘<’ token | |
TypeTraits::IsSame<typename TypeTraits::RemoveReference<T>::type, | |
^ | |
ArduinoJson.h:1589:64: error: expected ‘>’ before ‘<’ token | |
ArduinoJson.h:1590:19: error: wrong number of template arguments (1, should be 2) | |
JsonObject>::value, | |
^ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:350:16: note: provided for ‘template<class T, class U> struct ArduinoJson::TypeTraits::IsSame’ | |
struct IsSame { | |
^~~~~~ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:1591:21: error: template argument 1 is invalid | |
JsonObject &>::type | |
^ | |
ArduinoJson.h:1592:9: error: ‘template<class T> int ArduinoJson::JsonVariant::as() const’ cannot be overloaded | |
as() const { | |
^~ | |
ArduinoJson.h:1574:9: error: with ‘template<class T> int ArduinoJson::JsonVariant::as() const’ | |
as() const { | |
^~ | |
ArduinoJson.h:1598:49: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type | |
TypeTraits::IsSame<typename TypeTraits::RemoveReference<T>::type, | |
^~~~~~~~~~~~~~~ | |
ArduinoJson.h:1598:64: error: expected template-argument before ‘<’ token | |
TypeTraits::IsSame<typename TypeTraits::RemoveReference<T>::type, | |
^ | |
ArduinoJson.h:1598:64: error: expected ‘>’ before ‘<’ token | |
ArduinoJson.h:1599:25: error: wrong number of template arguments (1, should be 2) | |
const JsonObject>::value, | |
^ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:350:16: note: provided for ‘template<class T, class U> struct ArduinoJson::TypeTraits::IsSame’ | |
struct IsSame { | |
^~~~~~ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:1600:27: error: template argument 1 is invalid | |
const JsonObject &>::type | |
^ | |
ArduinoJson.h:1601:9: error: ‘template<class T> int ArduinoJson::JsonVariant::as() const’ cannot be overloaded | |
as() const { | |
^~ | |
ArduinoJson.h:1574:9: error: with ‘template<class T> int ArduinoJson::JsonVariant::as() const’ | |
as() const { | |
^~ | |
ArduinoJson.h:1643:30: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type | |
typename TypeTraits::RemoveReference<T>::type>::type, | |
^~~~~~~~~~~~~~~ | |
ArduinoJson.h:1643:45: error: expected template-argument before ‘<’ token | |
typename TypeTraits::RemoveReference<T>::type>::type, | |
^ | |
ArduinoJson.h:1643:45: error: expected ‘>’ before ‘<’ token | |
ArduinoJson.h:1643:54: error: template argument 1 is invalid | |
typename TypeTraits::RemoveReference<T>::type>::type, | |
^ | |
ArduinoJson.h:1644:18: error: template argument 1 is invalid | |
JsonArray>::value, | |
^ | |
ArduinoJson.h:1645:13: error: template argument 1 is invalid | |
bool>::type | |
^ | |
ArduinoJson.h:1654:30: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type | |
typename TypeTraits::RemoveReference<T>::type>::type, | |
^~~~~~~~~~~~~~~ | |
ArduinoJson.h:1654:45: error: expected template-argument before ‘<’ token | |
typename TypeTraits::RemoveReference<T>::type>::type, | |
^ | |
ArduinoJson.h:1654:45: error: expected ‘>’ before ‘<’ token | |
ArduinoJson.h:1654:54: error: template argument 1 is invalid | |
typename TypeTraits::RemoveReference<T>::type>::type, | |
^ | |
ArduinoJson.h:1655:19: error: template argument 1 is invalid | |
JsonObject>::value, | |
^ | |
ArduinoJson.h:1656:13: error: template argument 1 is invalid | |
bool>::type | |
^ | |
ArduinoJson.h:1657:9: error: ‘template<class T> int ArduinoJson::JsonVariant::is() const’ cannot be overloaded | |
is() const { | |
^~ | |
ArduinoJson.h:1646:9: error: with ‘template<class T> int ArduinoJson::JsonVariant::is() const’ | |
is() const { | |
^~ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h: In member function ‘void ArduinoJson::JsonArray::copyTo(T (&)[N1][N2]) const’: | |
ArduinoJson.h:2515:37: error: request for member ‘copyTo’ in ‘it->.as<ArduinoJson::JsonArray>()’, which is of non-class type ‘int’ | |
it->as<JsonArray>().copyTo(array[i++]); | |
^~~~~~ | |
ArduinoJson.h: In member function ‘const char* ArduinoJson::Internals::JsonParser<TReader, TWriter>::parseString()’: | |
ArduinoJson.h:3173:26: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type | |
typename TypeTraits::RemoveReference<TWriter>::type::String str = | |
^~~~~~~~~~~~~~~ | |
ArduinoJson.h:3173:41: error: expected unqualified-id before ‘<’ token | |
typename TypeTraits::RemoveReference<TWriter>::type::String str = | |
^ | |
ArduinoJson.h:3190:13: error: ‘str’ was not declared in this scope | |
str.append(c); | |
^~~ | |
ArduinoJson.h:3196:13: error: ‘str’ was not declared in this scope | |
str.append(c); | |
^~~ | |
ArduinoJson.h:3200:12: error: ‘str’ was not declared in this scope | |
return str.c_str(); | |
^~~ | |
ArduinoJson.h: In instantiation of ‘struct ArduinoJson::Internals::ValueSetter<const ArduinoJson::JsonArraySubscript&, void>’: | |
ArduinoJson.h:2531:58: required from ‘bool ArduinoJson::JsonArray::set_impl(size_t, TValueRef) [with TValueRef = const ArduinoJson::JsonArraySubscript&; size_t = long unsigned int]’ | |
ArduinoJson.h:2433:39: required from ‘typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsArray<T>::value), bool>::type ArduinoJson::JsonArray::set(size_t, const T&) [with T = ArduinoJson::JsonArraySubscript; typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsArray<T>::value), bool>::type = bool; size_t = long unsigned int]’ | |
ArduinoJson.h:3230:35: required from here | |
ArduinoJson.h:2361:25: error: forming reference to reference type ‘const ArduinoJson::JsonArraySubscript&’ | |
static bool set(JsonBuffer*, TDestination& destination, | |
^~~ | |
ArduinoJson.h: In instantiation of ‘bool ArduinoJson::JsonArray::set_impl(size_t, TValueRef) [with TValueRef = const ArduinoJson::JsonArraySubscript&; size_t = long unsigned int]’: | |
ArduinoJson.h:2433:39: required from ‘typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsArray<T>::value), bool>::type ArduinoJson::JsonArray::set(size_t, const T&) [with T = ArduinoJson::JsonArraySubscript; typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsArray<T>::value), bool>::type = bool; size_t = long unsigned int]’ | |
ArduinoJson.h:3230:35: required from here | |
ArduinoJson.h:2531:58: error: ‘set’ is not a member of ‘ArduinoJson::Internals::ValueSetter<const ArduinoJson::JsonArraySubscript&, void>’ | |
return Internals::ValueSetter<TValueRef>::set(_buffer, *it, value); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ | |
ArduinoJson.h: In instantiation of ‘bool ArduinoJson::JsonArray::add_impl(TValueRef) [with TValueRef = const ArduinoJson::JsonArray&]’: | |
ArduinoJson.h:2417:39: required from ‘typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsArray<T>::value), bool>::type ArduinoJson::JsonArray::add(const T&) [with T = ArduinoJson::JsonArray; typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsArray<T>::value), bool>::type = bool]’ | |
ArduinoJson.h:3313:18: required from here | |
ArduinoJson.h:2538:58: error: ‘set’ is not a member of ‘ArduinoJson::Internals::ValueSetter<const ArduinoJson::JsonArray&, void>’ | |
return Internals::ValueSetter<TValueRef>::set(_buffer, *it, value); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ | |
ArduinoJson.h: In instantiation of ‘bool ArduinoJson::JsonArray::add_impl(TValueRef) [with TValueRef = const ArduinoJson::JsonObject&]’: | |
ArduinoJson.h:2417:39: required from ‘typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsArray<T>::value), bool>::type ArduinoJson::JsonArray::add(const T&) [with T = ArduinoJson::JsonObject; typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsArray<T>::value), bool>::type = bool]’ | |
ArduinoJson.h:3320:19: required from here | |
ArduinoJson.h:2538:58: error: ‘set’ is not a member of ‘ArduinoJson::Internals::ValueSetter<const ArduinoJson::JsonObject&, void>’ | |
ArduinoJson.h: In instantiation of ‘typename ArduinoJson::Internals::JsonVariantAs<T>::type ArduinoJson::JsonArray::get(size_t) const [with T = ArduinoJson::JsonVariant; typename ArduinoJson::Internals::JsonVariantAs<T>::type = ArduinoJson::JsonVariant; size_t = long unsigned int]’: | |
ArduinoJson.h:3252:40: required from ‘typename ArduinoJson::Internals::JsonVariantAs<T>::type ArduinoJson::JsonArraySubscript::as() const [with T = ArduinoJson::JsonVariant; typename ArduinoJson::Internals::JsonVariantAs<T>::type = ArduinoJson::JsonVariant]’ | |
ArduinoJson.h:3765:45: required from ‘static void ArduinoJson::Internals::JsonSerializer<Writer>::serialize(const ArduinoJson::JsonArraySubscript&, Writer&) [with Writer = ArduinoJson::Internals::JsonWriter<ArduinoJson::Internals::StreamPrintAdapter>]’ | |
ArduinoJson.h:1191:62: required from ‘typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsString<Print>::value), long unsigned int>::type ArduinoJson::Internals::JsonPrintable<T>::printTo(Print&) const [with Print = ArduinoJson::Internals::StreamPrintAdapter; T = ArduinoJson::JsonArraySubscript; typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsString<Print>::value), long unsigned int>::type = long unsigned int]’ | |
ArduinoJson.h:1198:24: required from ‘std::ostream& ArduinoJson::Internals::JsonPrintable<T>::printTo(std::ostream&) const [with T = ArduinoJson::JsonArraySubscript; std::ostream = std::basic_ostream<char>]’ | |
ArduinoJson.h:3282:33: required from here | |
ArduinoJson.h:2451:32: error: call of overloaded ‘as()’ is ambiguous | |
return it != end() ? it->as<T>() : Internals::JsonVariantDefault<T>::get(); | |
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from main.cpp:1:0: | |
ArduinoJson.h:1574:9: note: candidate: int ArduinoJson::JsonVariant::as() const [with T = ArduinoJson::JsonVariant] | |
as() const { | |
^~ | |
ArduinoJson.h:1608:9: note: candidate: typename ArduinoJson::TypeTraits::EnableIf<ArduinoJson::TypeTraits::IsSame<T, ArduinoJson::JsonVariant>::value, T>::type ArduinoJson::JsonVariant::as() const [with T = ArduinoJson::JsonVariant; typename ArduinoJson::TypeTraits::EnableIf<ArduinoJson::TypeTraits::IsSame<T, ArduinoJson::JsonVariant>::value, T>::type = ArduinoJson::JsonVariant] | |
as() const { | |
^~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment