-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
insert json array issue with gcc4.8.2 #110
Comments
Thanks for reporting. I'll see if I can reproduce the error. |
no that interface in |
Looks like you're using a C++98 library instead of a C++11 library. The return type of std::vector::insert taking 3 iterators changed from void to iterator in C++11. |
I can reproduce the error with
For code #include <json.hpp>
nlohmann::json _task;
void add_task(const nlohmann::json& tasks) {
_task.insert(_task.end(),tasks.cbegin(),tasks.cend());
}
int main() {
} I get the following error:
This seems to be the same. |
This is a bug in GCC, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55817. It has not been fixed until GCC 4.9. I shall edit file README and remove GCC 4.8 support. |
The task may like this:
when I try to insert json to
_task
I get this error when using gcc4.8.2 (but worked when using clang3.6)
The text was updated successfully, but these errors were encountered: