freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pooma-dev] question for language gurus


From: Jeffrey Oldham
Subject: Re: [pooma-dev] question for language gurus
Date: Wed, 18 Apr 2001 13:53:48 -0700
User-agent: Mutt/1.2.5i

On Tue, Apr 17, 2001 at 07:34:05PM -0700, Julian Cummings wrote:
> Is the code at line 1421 of DynamicLayout.h legit?
> This is a templated constructor for DynamicLayoutViewData
> that takes a DynamicLayoutView object as its first argument.
> The aCC compiler complains about calling member functions
> of the DynamicLayoutView argument because the class has
> not yet been defined (it is defined further down in the file)
> and is thus incomplete.  The aCC compiler swallows the code
> if I move this constructor definition outside the class definition
> and below the definition of class DynamicLayoutView.
> 
> The point of instantiation for this templated constructor clearly
> happens later in some other file that is including DynamicLayout.h.
> But since DynamicLayoutView is not a templated type, it is not
> dependent on the template parameter for the constructor.  So perhaps
> this is a legitimate error and the code must be moved out of line and
> after the definition of DynamicLayoutView.  Comments?

I prefer to make it compile without complaint.

Thanks,
Jeffrey D. Oldham
address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]