Skip to content

Reduced the number of headers including ConfigTree

Christoph Lehmann requested to merge chleh/ogs:fwd-declare-configtree into master

ConfigTree.h is a header file that's rather heavy, because it pulls in the Boost property tree header.

This MR reduces the number of header including ConfigTree.h from 31 to 6. Thereby, ConfigTree.h does not "propagate" anymore to headers that don't need it at all.

This MR might reduce compilation times a bit, but I didn't measure it.

The remaining headers including ConfigTree.h are:

  • BaseLib/ConfigTree-impl.h
  • BaseLib/ConfigTreeUtil.h
  • MaterialLib/Adsorption/ReactionCaOH2.h
  • ParameterLib/Utils.h
  • ProcessLib/BoundaryConditionAndSourceTerm/SourceTermConfig.h
  • ProcessLib/BoundaryConditionAndSourceTerm/BoundaryConditionConfig.h

It's not possible/sensible to remove that header there, too.

Merge request reports