[cfe-dev] Nested forward declarations of self

Sean Silva silvas at purdue.edu
Thu Dec 13 12:27:28 PST 2012


On Thu, Dec 13, 2012 at 3:13 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:
> I'm surprised by the nested forward declaration in the class -- it
> seems like it creates a nested forward declaration to itself.
>
> Should it be there?

If you look in the C++ standard, there's this concept of "injected
class name", which I think is what this is supposed to model.

-- Sean Siva




More information about the cfe-dev mailing list