![]() |
Blitz Support : |
From: David Johnson (dave_at_[hidden])
Date: 2004-01-09 15:22:41
Hi,
Two questions.
I'm using VS.NET 2003 under W2K.
I think I've successfully installed and tested Blitz since all of the
testsuite programs run. But I get the following warning with almost every
compile in my own test program.
:\Blitz\blitz\vector.h(458) : warning C4521: 'blitz::Vector<P_numtype>' :
multiple copy constructors specified
with
[
P_numtype=int
]
C:\Blitz\blitz\vecpick.h(290) : see reference to class template
instantiation 'blitz::Vector<P_numtype>' being compiled
with
[
P_numtype=int
]
C:\Blitz\blitz\vecpick.h(291) : see reference to class template
instantiation 'blitz::VectorPick<P_numtype>' being compiled
It seems to run, but we try and eliminate all warnings in our code.
Second question:
The following fails to compile:
class A
{
public:
blitz::Array<double,2> B(2,2,FortranArray<2>() );
void func();
};
But if I move the Array definition into func(), it compiles fine.
With the definition in the class definition it gives:
d:\Sindaworks\Code\SWBaseObjects\SWYsmpSolver.h(52) : error C2059: syntax
error : 'constant'
d:\Sindaworks\Code\SWBaseObjects\SWYsmpSolver.h(52) : error C2059: syntax
error : ')'
d:\Sindaworks\Code\SWBaseObjects\SWYsmpSolver.h(52) : error C2143: syntax
error : missing ')' before ';'
Why does it fail in the class definition?
Thanks,
Dave
David Johnson
Cullimore and Ring Tech., Inc.
Voice: 303-471-9622
Fax: 303-971-0035
dave_at_[hidden]
http://www.crtech.com
Hot engineering .... Cool software (tm)
.........................................................................