SyTen

◆ operator""_r() [1/2]

constexpr SRDef syten::operator""_r ( long double  value)
constexpr

User-defined literal operator to turn a floating-point value into a SRDef.

Example\n 1.5_r is SRDef(1.5)
Remarks
If SRDef was always double (or float), this would not be necessary, as one could simply write 1.5 (or 1.5f). However, if we want to support both (and not change everything on every switch), we have to be explicit.