Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc 4.9.0

Options
Warnings
Boost 1.64.0
C++14(GNU)
no pedantic

ArduinoJson.h

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.64.0/gcc-4.9.0/include -std=gnu++14
prog.cc: In function 'void parsesub_Settings(ArduinoJson::JsonObjectConst)':
prog.cc:14:10: warning: unused variable 'val' [-Wunused-variable]
      int val = v.as<int>();
          ^
In file included from prog.cc:6:0:
ArduinoJson.h: In instantiation of 'ArduinoJson6141_1100000::VariantCasts<TImpl>::operator T() const [with T = ArduinoJson6141_1100000::ArrayRef; TImpl = ArduinoJson6141_1100000::VariantConstRef]':
prog.cc:12:32:   required from here
ArduinoJson.h:1670:35: error: could not convert 'ArduinoJson6141_1100000::VariantCasts<TImpl>::impl<ArduinoJson6141_1100000::VariantConstRef>()->ArduinoJson6141_1100000::VariantConstRef::as<ArduinoJson6141_1100000::ArrayRef>()' from 'ArduinoJson6141_1100000::VariantConstAs<ArduinoJson6141_1100000::ArrayRef>::type {aka ArduinoJson6141_1100000::ArrayConstRef}' to 'ArduinoJson6141_1100000::ArrayRef'
     return impl()->template as<T>();
                                   ^
Exit Code:
1