Hi Lars, Mar 8 2023, Lars Luthman has written: ... but when you use them as type-constraints the actual type being constrained will be inserted automatically as the first template parameter. ...
template <typename T> requires std::convertible_to<T, int> void foo(T t) {}template <std::convertible_to<int> T> void foo(T t) {} void foo(std::convertible_to<int> auto t) {}
... Many, many thanks. This was the bit of information I lacked. Best wishes, jeanette -- * Website: http://juliencoder.de - for summer is a state of sound * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g * Audiobombs: https://www.audiobombs.com/users/jeanette_c * GitHub: https://github.com/jeanette-c And I love the way with just one whisper You tell me everything <3 (Britney Spears) _______________________________________________ Linux-audio-dev mailing list -- [email protected] To unsubscribe send an email to [email protected]
