trainings/AdvancedCppV2/Presentation/exercises/complex/soulutions/complex.cpp

6 lines
No EOL
145 B
C++

#include <complex>
template <typename T, typename U>
std::complex<T> makeComplex(T a, U b) {
return std::complex<T>{a, static_cast<T>(b)};
}