Skip to content

Commit

Permalink
docs[factories.md]: add missing code block closing fence (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-nguyen committed Sep 15, 2024
1 parent aaa79ee commit 5553441
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Factories.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ struct Foo {
// Foo is already instantiable as a base class, so it is repeated twice as an argument
inline static const auto registration_ = config::Registration<Foo, Foo, int, Bar>("Foo");
}
```
## Creating objects with individual configs

We further provide a version of the factory that allows the declaration of an additional config struct for each derived type. The config is expected to be a `config_utilities` config, the first argument to the constructor, and will be created from the data provided to create the object:
Expand Down

0 comments on commit 5553441

Please sign in to comment.