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
following #2216
I try to make Qt types work with the lib
I did this :
using qtjson = nlohmann::basic_json<QMap,QList,QString>;
It compiles
but this doesn't
qtjson j;
The compiler yells at me things like
json.hpp:16302: error: wrong number of template arguments (4, should be 2)
json.hpp:16978: error: wrong number of template arguments (4, should be 2)
json.hpp:17027: error: ‘const union nlohmann::basic_json<QMap, QList, QString>::json_value’ has no member named ‘object’
I'm a bit lost, do I have do implement functions ? Maybe did i forget to specify a type somewhere ?
Thanks in advance !
The text was updated successfully, but these errors were encountered:
I made that to convert between Qt Types and standard types https://gist.github.com/pylvain/d8127d4a3da206fcd49dd05463a4cc07, should anyone need it.
The lib takes 400ms to parse a 4MB json file. Converting between QJsonType and json::value_type and then doing the reverse operation takes 800ms. It's not awful, i will use that, that's good enough for me.
Just out of curiosity, has anyone any idea on how to improve performances ?
(I will close after that)
following #2216
I try to make Qt types work with the lib
I did this :
using qtjson = nlohmann::basic_json<QMap,QList,QString>;
It compiles
but this doesn't
The compiler yells at me things like
I'm a bit lost, do I have do implement functions ? Maybe did i forget to specify a type somewhere ?
Thanks in advance !
The text was updated successfully, but these errors were encountered: