i want to create a container which contains references to pointers
1) Is this possible?
2) What is the syntax?
I imagine its
<T*&>
ie: std::stack< int*& > stack_;
but this just gives me errors "xmemory: pointer to reference is illegal."
You cannot use references as the element type of a container, because there is no such thing as a reference object in C++.
What exactly are you trying to achieve? Why not simply use a std::stack<int>?