J
janzon
Hi
I have a class Foo that I use both as a Foo<double> and a Foo<float>. I
want to put instances of this class in a list container. The list
container itself is a template and need a type argument. The naive way
below does not work.
list<Bar<double>> myList;
It produces the error message: Error: "," expected instead of ">>". How
do I solve this problem?
Thanks in advance, Daniel
I have a class Foo that I use both as a Foo<double> and a Foo<float>. I
want to put instances of this class in a list container. The list
container itself is a template and need a type argument. The naive way
below does not work.
list<Bar<double>> myList;
It produces the error message: Error: "," expected instead of ">>". How
do I solve this problem?
Thanks in advance, Daniel