Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: Forward declaration with namespace?


Chronological Thread 
  • From: Roni Choudhury < >
  • To:
  • Cc:
  • Subject: [Manta] Re: Forward declaration with namespace?
  • Date: Fri, 06 Jun 2008 11:37:43 -0600

namespace Manta{
  class Group;

  // Other code here.
}

Li-Ta Lo wrote:
Hi,

How can I do a forward declaration for Manta classes without including
those header files? This is complicated by the fact that every Manta
class is in the Manta namespace. I tried something like

using namespace Manta;
class Manta::Group;

but the compiler doesn't like it.

Ollie



Archive powered by MHonArc 2.6.16.

Top of page