[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
question for language gurus
From: |
Julian Cummings |
Subject: |
question for language gurus |
Date: |
Tue, 17 Apr 2001 19:34:05 -0700 |
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?
Julian C.
--
Dr. Julian C. Cummings E-mail: address@hidden
California Institute of Technology Phone: 626-395-2543
1200 E. California Blvd., Mail Code 158-79 Fax: 626-584-5917
Pasadena, CA 91125
- question for language gurus,
Julian Cummings <=