You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MyIterator begin(MyContainer& tgt) { return MyIterator{&tgt}; } does not compile, stop some complaining only if MyContainer& tgt is const (const MyContainer& tgt) but this make it useless
reference operator*() const {return target.get_current(); } but target is a pointer (also null)
MyIterator& operator++() {MyContainer.advance(); return *this; } what is supposed to be MyContainer.advance(); static? reference? pointer?
Tennsy 4 (Arduino)
Platformio on mac osx,
gcc-arm-embedded: 5.4.1
build_flags =
-std=c++17
-lstdc++
-lnosys
-fno-exceptions
latest release version 3.9.1 single header version
the develop branch single header version
ERROR LIST:
src/main.cpp:243:27: required from here
lib/json.hpp:23225:37: error: no matching function for call to 'input_adapter(MyContainer&)'
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
src/main.cpp:243:27: required from here
lib/json.hpp:5164:83: error: binding 'const MyContainer' to reference of type 'MyContainer&' discards qualifiers
auto input_adapter(const ContainerType& container) -> decltype(input_adapter(begin(container), end(container)))
lib/json.hpp:5299:32: note: template argument deduction/substitution failed:
lib/json.hpp:5198:30: error: no type named 'type' in 'struct std::enable_if<false, int>'
int >::type = 0 >
src/main.cpp: In member function 'MyIterator& MyIterator::operator++()':
src/main.cpp:218:20: error: expected unqualified-id before '.' token
MyContainer.advance();
src/main.cpp: In member function 'const char& MyIterator::operator*() const':
src/main.cpp:227:23: error: request for member 'get_current' in '((const MyIterator*)this)->MyIterator::target', which is of pointer type 'MyContainer* const' (maybe you meant to use '->' ?)
return target.get_current();
Thanks in advance,
Luca
The text was updated successfully, but these errors were encountered:
"Custom data source" form readme exemple make no sense and does not compile (?)
Some (I think are) problems:
MyIterator begin(MyContainer& tgt) { return MyIterator{&tgt}; }
does not compile, stop some complaining only ifMyContainer& tgt
is const (const MyContainer& tgt
) but this make it uselessreference operator*() const {return target.get_current(); }
buttarget
is a pointer (also null)MyIterator& operator++() {MyContainer.advance(); return *this; }
what is supposed to beMyContainer.advance();
static? reference? pointer?Tennsy 4 (Arduino)
develop
branch single header versionERROR LIST:
Thanks in advance,
Luca
The text was updated successfully, but these errors were encountered: