From 346f2a722a28da6bb00a61993a670c9638487810 Mon Sep 17 00:00:00 2001 From: Danilo Piparo Date: Tue, 3 Dec 2024 15:27:57 +0100 Subject: [PATCH] Mention the IO ctor in the manual --- manual/io_custom_classes/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/io_custom_classes/index.md b/manual/io_custom_classes/index.md index afc71181..b09e683a 100644 --- a/manual/io_custom_classes/index.md +++ b/manual/io_custom_classes/index.md @@ -245,7 +245,7 @@ class MyClass { ## Restrictions on types ROOT I/O can handle -For ROOT to be able to store a class, it must have a public constructor. +For ROOT to be able to store a class, it must have a public default constructor or a special I/O constructor (see the documentation of [`TClass::New`](https://root.cern/doc/master/classTClass.html) for more details and examples). ROOT currently does not support I/O of `std::shared_ptr`, `std::optional`, `std::variant` and classes with data members of these types (unless they are marked as "transient").