[pooma-dev] RFA: DomainIterator.h: Add DomainTraits Specialization
Jeffrey Oldham
oldham at codesourcery.com
Wed May 23 22:59:55 UTC 2001
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 <oldham at codesourcery.com>
* 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
oldham at codesourcery.com
-------------- next part --------------
Index: NewDomain.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Domain/NewDomain.h,v
retrieving revision 1.30
diff -c -p -r1.30 NewDomain.h
*** NewDomain.h 2001/04/13 02:12:59 1.30
--- NewDomain.h 2001/05/23 22:50:43
***************
*** 60,65 ****
--- 60,66 ----
//-----------------------------------------------------------------------------
#include "Domain/DomainTraits.h"
+ #include "Domain/DomainTraits.int.h"
#include "Utilities/PAssert.h"
//-----------------------------------------------------------------------------
More information about the pooma-dev
mailing list