Closed GoogleCodeExporter closed 8 years ago
I was wondering if someone would pick up on this! You're right that
scoped_ptr<T> does need the full type of T in some situations (I think it's
only when the destructor is called). So scoped_ptr<T> can forward-declare T
only in some situations, like when it's a member variable of a class whose
destructor is in a different file.
I'm happy to use another example if it's as well-known as scoped_ptr. Any
ideas?
Original comment by csilv...@gmail.com
on 7 Feb 2011 at 6:35
I don't know how detailed I wanted to get, so I ended up just changing the wiki
to say "forward-declaring scoped_ptr<> is often sufficient." I'll declare this
enough. :-)
Original comment by csilv...@gmail.com
on 25 Oct 2011 at 12:06
Original issue reported on code.google.com by
schaub.j...@googlemail.com
on 5 Feb 2011 at 3:20