I want to have a variable be determined by user-picked parameters and weights they choose as sort of a template, but C++ needs to know types at runtime, so what could I do?<