question for language gurus

Julian Cummings cummings at cacr.caltech.edu
Wed Apr 18 02:34:05 UTC 2001


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: cummings at cacr.caltech.edu
California Institute of Technology           Phone:  626-395-2543
1200 E. California Blvd., Mail Code 158-79   Fax:    626-584-5917
Pasadena, CA 91125






More information about the pooma-dev mailing list