Blog: Articles on C++11 and Computational Finance (by Daniel J. Duffy)

Visual Studio 2022 does not suppport Gaussian integers.
... not end of world, stilll, error messages are scary for some.

Gaussian integer - Wikipedia
Code: Select all
// Not on VS2022
// std::complex<int> com(1, 1);
// std::complex<int> com2(1.0, 1);
// std::complex<float> com3(1.0, 1);
std::complex<float> com3(1.0, 2.0);
 
Back
Top Bottom