> On 21 Jun 2018, at 00:30, nine.fierce.ball...@gmail.com wrote:
> Maybe a function would help: > > Transform make_transform(const Transform *t) > { > return t ? Transform (*t) : Transform (); > } > > You could also do it as a constructor, if you prefer its syntax and > don't mind implementing yet another one: > > explicit Transform(const Transform *t) ... One can also use a tag type argument in the constructor: struct make_t {}; constexpr make_t make{}; Used in the C++ library, cf. https://en.cppreference.com/w/cpp/utility/optional/nullopt_t _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel