I'm trying to use a generic coding style to wrap a restricted concept API over generic stacks. The problem I'm running into is that one of my constructors, the most important one that takes a templatised stack, is overriding my copy constructor. I have a gist with the class in question, some test code, and the error I get from the compiler here: https://gist.github.com/biot023/5178831
I want to be able to use value semantics with the stacks I create, which I can when just assigning to a vector of them. However, this is giving me my copy constructor issue.
Could anyone advise how I could maybe explicitly trigger the copy constructor (which I only really need to do in my test code), or maybe show me where I'm going wrong?