Skip to content

Compatibility Issue with entt::snapshot_loader and nlohmann::json for Deserialization in EnTT v3.15.0 (dev) #1276

@brinkqiang

Description

@brinkqiang

When attempting to deserialize a registry state using entt::snapshot_loader with a nlohmann::json object as the input archive, a compile-time error occurs. The error message indicates a failure in template argument deduction within the nlohmann::json library.

The process of serializing (saving) the state using entt::snapshot and nlohmann::json works without any issues. The problem is strictly confined to the deserialization (loading) process.

The typical compiler error is:
'nlohmann::json::operator ValueType() const': cannot deduce template argument for 'ValueType'

Metadata

Metadata

Assignees

Labels

triagepending issue, PR or whatever

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions