CoriEngine
Loading...
Searching...
No Matches
Cori::FileSystem::JsonSerializable Concept Reference

To satisfy use NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE macro. Refer here https://json.nlohmann.me/api/macros/nlohmann_define_type_non_intrusive/ for details. More...

#include <JsonSerializer.hpp>

Concept definition

template<typename T>
concept Cori::FileSystem::JsonSerializable = requires(T value, const nlohmann::json j) {
{ nlohmann::json(value) } -> std::same_as<nlohmann::json>;
{ j.get<T>() } -> std::same_as<T>;
}
To satisfy use NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE macro. Refer here https://json.nlohmann....

Detailed Description

To satisfy use NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE macro. Refer here https://json.nlohmann.me/api/macros/nlohmann_define_type_non_intrusive/ for details.

Definition at line 10 of file JsonSerializer.hpp.