You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it doesn’t solve the problem, which you say was to sort numbers. You took the liberty to reduce that to a tiny subproblem of sorting only digits. I was disappointed, because just now I too need compile time sorting.
You can call const {} and const functions in a macro*). Alas sorting is not const. I’m considering rolling my own, but again mem::swap is not stabilised in const. But with a <T: Copy> generic parameter I can (a, b) = (b, a).
*) I did this recently, implementing a compile time number parser macro mostly as functions.
The text was updated successfully, but these errors were encountered:
it doesn’t solve the problem, which you say was to sort numbers. You took the liberty to reduce that to a tiny subproblem of sorting only digits. I was disappointed, because just now I too need compile time sorting.
You can call
const {}
andconst
functions in a macro*). Alas sorting is notconst
. I’m considering rolling my own, but againmem::swap
is not stabilised inconst
. But with a<T: Copy>
generic parameter I can(a, b) = (b, a)
.*) I did this recently, implementing a compile time number parser macro mostly as functions.
The text was updated successfully, but these errors were encountered: