[pooma-dev] Explicit Instantiation Problem with Pooma 2 using KCC on RH 6.2 Linux

Scott Haney scotth at proximation.com
Fri May 4 14:55:16 UTC 2001


On Thursday, May 3, 2001, at 06:38 PM, Jeffrey Oldham wrote:

> Dave Nyholm submitted a program equivalent to
>
>     #include "Pooma/NewFields.h"
>
>     template View1<Field<NoGeometry<(int)3>, int, 
> CompressibleBrickView>,
> 		   Interval<(int)3> >::sv;
>
> I fail to see why it should compile.

I've hit this problem before with Array. I guess I forgot to move this 
to Field. The solution is to not use View1 in the call to read(), but 
rather to make another class, View0, that handles this special case. 
This removes the circular dependency when pre-instantiating View1. This 
is inelegant and it might not always work, but it made KCC happy before. 
See Array.h.

Scott

--
Scott W. Haney
Development Manager
Proximation LLC
2960 Rodeo Park Drive West
Santa Fe, NM 87505
Voice: 505-424-3809 x101
FAX: 505-438-4161



More information about the pooma-dev mailing list