Blitz logo

Blitz Support :

From: David Johnson (dave_at_[hidden])
Date: 2004-01-19 13:01:11


Hi,

I'm finding that I am still getting the multiple copy constructors warning.
I find that if I change the arrayresize program in testsuite to use double
variables instead of int variables in line 33 where it declares the fortran
array, I also get multiple copy constructor warnings. This really looks
like a bug in Blitz to me, but maybe I'm missing something still. ( I did
as Vincent suggested and found my other errors! Thanks Vincent). Is this
an issue that someone will look at?

I'm also concerned about the reported problems with optimization with
FORTRAN arrays. Is this a problem that is being addressed? Can anyone tell
me what kind of support these issues normally get?

When bugs are fixed, is it normal to have to scan the respository and find
the individual files that have been modified and download those? Or is the
whole package updated so we can just reinstall everything?

Thanks for the help.

Dave
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)
.........................................................................