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
In my project I have been using the SimpleJSON library (https://github.com/nbsdx/SimpleJSON) for creating/loading json files, which uses the namespace json for its classes. When trying to use the tinygltf library I get ambiguity errors because you are also using json. I solved this issue in my own project by changing json to nlohmann::json in tiny_gltf.h
To Reproduce
OS: Ubuntu (Under WSL2)
Compiler: g++
Expected behaviour
Changing json to nlohmann::json in the nlohmann implementation fixes the problem. I know it would be annoying, but it should help resolve future conflicts.
The text was updated successfully, but these errors were encountered:
Describe the issue
In my project I have been using the SimpleJSON library (https://github.com/nbsdx/SimpleJSON) for creating/loading json files, which uses the namespace
json
for its classes. When trying to use the tinygltf library I get ambiguity errors because you are also usingjson
. I solved this issue in my own project by changingjson
tonlohmann::json
in tiny_gltf.hTo Reproduce
Expected behaviour
Changing
json
tonlohmann::json
in the nlohmann implementation fixes the problem. I know it would be annoying, but it should help resolve future conflicts.The text was updated successfully, but these errors were encountered: