On 02/27/2016 07:38 AM, Marc Schütz wrote:
I don't see it as cheating; in fact it is more elegant, because it
checks for exactly the thing you depend on, namely that `partition` is
callable. Your explicit check above rejects structs with opCall(), for
example, which is probably not what you intended.

Good point. Unrelated: I also noticed that if the template has an error inside, the error messages when using it with __traits(compiles) are mightily confusing. -- Andrei

Reply via email to