[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pooma-dev] RFA: DomainIterator.h: Add DomainTraits Specialization
From: |
Jeffrey Oldham |
Subject: |
Re: [pooma-dev] RFA: DomainIterator.h: Add DomainTraits Specialization |
Date: |
Wed, 23 May 2001 15:59:55 -0700 |
User-agent: |
Mutt/1.2.5i |
On Wed, May 23, 2001 at 03:28:34PM -0700, James Crotinger wrote:
> I don't think that's it either - the question is, who is directly causing
> DomainIterator<int> to be instantiated?
I do not know. Starting with
CoordinateSystems/tests/CartesianTest1.cpp with an empty main(), I
repeatedly replaced header files while the problem continued to exist
until I ended with
#include "Domain/NewDomain.h" // problem in here?
#include "Domain/DomainTraits.int.h"
int main()
{
}
Replacing the first line with the header files it includes makes the
problem disappear. Thus, I conclude that the use is in
Domain/NewDomain.h, not in files it includes. Every use of
DomainTraits<...> uses a template parameter so I do not know what is
being instantiated. Do you know of a way to have a compiler list all
the templates it is instantiating?
****************
How about this? OK to commit?
When trying to compile src/CoordinateSystems/tests/CartesianTest1.cpp,
gcc 3.0 complained that a DomainTraits specialization was declared
after the general DomainTraits. This patch resolve the problem.
2001 May 23 Jeffrey D. Oldham <address@hidden>
* NewDomain.h: Add DomainTraits.int.h inclusion.
Tested on sequential Linux using gcc 3.0 by compiling CartesianTest1.cpp
Approved by ???you???
Thanks,
Jeffrey D. Oldham
address@hidden
NewDomain.h.patch
Description: Text document