On Thu, Sep 18, 2008 at 9:45 AM, John Peterson <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 18, 2008 at 9:42 AM, David Fuentes <[EMAIL PROTECTED]> wrote:
>>
>
>> I've never seen this before. Are both "System" referring
>> to the same class?  Is the System in the template the
>> same as the System in the class definition?
>
> Yeah, it's the same system.  If you take a look at the templated
> ReferenceCountedObject class, it's what allows us to determine if
> anything hasn't been destroyed by the time the LibMeshInit destructor
> is called.

Oh, and I think a forward declaration is required to do this (but I'm
not 100% sure).  You'll see e.g.

class Foo;

class Foo: public ReferenceCountedObject<Foo>
{
};

in several places throughout the library.

-- 
John

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to