|
From: | Vincent Vandalon |
Subject: | [Help-gsl] Why are standard (*, +, etc) operators not overloaded for complex numbers in C++ |
Date: | Sat, 27 Jan 2018 19:38:47 +0000 |
Dear All, I am curious why the standard binary operators are not overloaded for the gsl_complex type in C++; I presume this overloading is omitted intentionally (since you can quickly write them yourself). Was the choice to omit overloaded operators mainly driven by the desire to avoid accidentally/non-explicit casting of a built-in type to gsl_complex? Regards and thanks for making & maintaining this great library! Vincent.
[Prev in Thread] | Current Thread | [Next in Thread] |