4 ms·
This is discussed in the section about including external functionality through a mechanism of guided mapping. In the proposed syntax, that would be done like t
by pierrebai 8y ago
This is discussed in the section about including external functionality through a mechanism of guided mapping. In the proposed syntax, that would be done like this:
typedecl Celsius clone Scalar Scalar::scale(Scalar) -> Celsius Celsius::scale(Scalar);
(In the blog post, the example given is with std::pow())