I'm lost, quite frankly. I have an example piece of code where I I have a template class and one instance of a specialized version of that class. In the main program, I am simply trying to create a vector that can hold instances of the specializations of that template class. My question is, is it even possible to create a vector of the various specialized instances of a template class? I know I can do it by being specific about which template class specialization. I hope that made sense.
Is there a better approach if there is not a way to do this?
I was able to find a solution to my problem (besides the genetic one) doing the following, by creating a base class and making it the basis for the vector... Does anyone have a cleaner solution that doesn't necessarily require creating a entire new class just to stuff the vector?
I will have to keep those in mind; unfortunately, I'm using Netbeans 8.2 and it provides support no later than C++14. So it appears that both variant and any are unavailable.
Figures, I've always been the guy who builds the engines but forget to invent the gas.
Any other options? I tried my solution and all I did was end up disemboweling my original code and making a mess. Just a wee bit frustrated at this point
My goodness, that was worth waiting up for! I've seen a lot of code samples using boost. But have never used it myself. I will look at this this afternoon. It's almost 0900 here and I'm hitting the rack. After a nice plate of eggs over easy (bribed the chef) and half a hog's worth of bacon). Thanks so much!!!