Initializing a vector with a class that has a pass-by-reference constructor parameter and saves that reference as a member
I’m trying intending to create a single instance of a type that gets shared among the items in a vector. Each of the vector’s item types requires a pass-by-reference parameter in the constructor but I can’t seem to get the vector to initialize properly.