Lawrence D’Oliveiro <l…@nz.invalid> writes:
> On Tue, 1 Dec 2026 16:33:24 +0100, Bonita Montero wrote:
>> Am 01.12.2026 um 14:53 schrieb David Brown:
>>> Some other languages, like Haskell, make it easier to write your >>> own operators and also let you use symbols for them.  C++ lets you >>> write "rotatematrix(15_deg, "Z")", but not "15°".  (You'd have to >>> find a Unicode letter that looks like a degree symbol.) >>>
>> This is sth. similar in C++: >> >> complex<double> operator ""_degree( long double angle ) >> { >> return complex<double>( sin( angle ), cos( angle ) ); >> }
> > I don’t see any such C++ feature > <https://cppreference.com/cpp/language/operators>.
I do. If you want to know more about this feature, consult a C++ reference or tutorial or ask in comp.lang.c++.
-- Keith Thompson (The_Other_Keith) Keit…@gmail.com void Void(void) { Void(); } /* The recursive call of the void */