Blitz logo

Blitz Bugs :

From: Dr. Hans Ekkehard Plesser (hans.ekkehard.plesser_at_[hidden])
Date: 2004-12-13 03:20:45


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

The following program will compile with blitz-0.8 if and only if the variable
n is of type int.  For all other integer types (long, unsigned int), gcc v.
3.3.4 and 3.4.3 throw an ambiguous overload error.  This problem does not
occur with Blitz++-0.7.

- ----------------
#include <blitz/array.h>

int main()
{
  blitz::Array<int, 1> A(1);

  //int n = 1;  // ok
  long n = 1;   // ambiguous overload error

  A = blitz::tensor::i + n;

  return 0;
}
- -----------------

I realize that this change in behavior compared to 0.7 may be the consequence
of an important design decision elsewhere, but it should at least be
documented.

Best regards,
Hans
- --
Dr. Hans Ekkehard Plesser
Associate Professor
Dept. of Mathematical Sciences and Technology
Agricultural University of Norway
Phone +47 6494 8832
Fax +47 6494 8810
Home http://arken.nlh.no/~imfhep

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBvVDpbuXhp9E3LTsRAqCxAKCSq1gSFeXUA+d8ppGTGsX73II7SwCeMs/I
K2hnF1mY+rSQWtY2kKDsGus=
=RfpG
-----END PGP SIGNATURE-----