Rework Item_factory to use generic_factory #36851
Labels
[C++]
Changes (can be) made in C++. Previously named `Code`
Code: Infrastructure / Style / Static Analysis
Code internal infrastructure and style
(P5 - Long-term)
Long-term WIP, may stay on the list for a while.
Is your feature request related to a problem? Please describe.
Item_factory is a specialized class that was written before the implementation of generic_factory. As such, it does not take advantage of some of the newer features of that. In addition, it is a little bit more difficult to see what's going on since it doesn't follow the same implementation as much of the rest of our json loading.
Describe the solution you'd like
Reimplement Item_factory as a generic_factory. There is plenty of documentation on generic_factory in generic_factory.h, it is quite straightforward to use and it does not necessarily require understanding on the underlying template functions.
The text was updated successfully, but these errors were encountered: