Skip to content

Commit 1c33f6e

Browse files
committed
fix: undef PODIO_JSON_OUTPUT in module interfaces to avoid TU-local nlohmann/json entities
1 parent 46e13eb commit 1c33f6e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

python/templates/datamodel_module.ixx.jinja2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ module;
2020
#include <vector>
2121

2222
// Podio core headers (module-safe - no ROOT dependencies)
23+
// NOTE: PODIO_JSON_OUTPUT is undefined here because nlohmann/json 3.11 has
24+
// TU-local entities that cannot be exposed in C++20 module interfaces.
25+
// JSON serialization is available for non-module users.
26+
#if defined(PODIO_JSON_OUTPUT)
27+
#undef PODIO_JSON_OUTPUT
28+
#endif
2329
#include "podio/CollectionBase.h"
2430
#include "podio/ICollectionProvider.h"
2531
#include "podio/SchemaEvolution.h"

0 commit comments

Comments
 (0)