ClassDef for nested classes

I have an I/O class containing a nested class, currently defined like this:

class Main{
  class Nested{
     int n;
  int M;
  Nested nested;
ClassDef(Main, 1);

I’m wondering if a ClassDef directive is needed also for Nested, especially to leverage the automatic schema evolution, or if the Main's ClassDef will take care of everythng.


#pragma link C++ nestedclasses;
#pragma link C++ nestedtypedefs;
1 Like

Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.