Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename T>
- class Foo {
- private:
- struct Bar{
- T data;
- };
- Bar* method();
- };
- template<typename T>
- Quux Foo<T>::method() {
- Bar* ptr = new Bar();
- return ptr;
- } //replace Quux with whatever I need to return ptr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement