I have a header file with a class declared like so:
template <class Item> class ItemJArray { ... };
I want to typedef this in a source file, but this does not work:
typedef ItemJArray JArray;
I want JArray to behave exactly like ItemJArray. Specifically, I want to be able to instantiate different objects of type JArray that operate on different data types.
How do I do this?
template <class Item> class ItemJArray { ... };
I want to typedef this in a source file, but this does not work:
typedef ItemJArray JArray;
I want JArray to behave exactly like ItemJArray. Specifically, I want to be able to instantiate different objects of type JArray that operate on different data types.
How do I do this?