Added to possibility to compile unit tests at maximum warning level.

Silenced (amongst others) many conversion related warnings.
This commit is contained in:
Hauke Heibel
2009-12-12 11:39:07 +01:00
parent 494a88685e
commit d088ee35f6
38 changed files with 135 additions and 44 deletions

View File

@@ -40,7 +40,7 @@ template <typename T>
void take_std( std::complex<T> * dst, int n )
{
for (int i=0;i<n;++i)
dst[i] = std::complex<T>(i,i);
dst[i] = std::complex<T>(static_cast<float>(i),static_cast<float>(i));
cout << dst[n-1] << endl;
}