[pooma-dev] question for language gurus
Jeffrey Oldham
oldham at codesourcery.com
Wed Apr 18 20:53:48 UTC 2001
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
oldham at codesourcery.com
More information about the pooma-dev
mailing list