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
Off-topic for dstep specifically but when I fixed this by hand it was my first experience with variadic templates in D and I was blown away by compile time sequences.
the fact that I could write
autosam_hdr_update(T, A...)(T h, A a) {
sam_hdr_update_line(h, "HD", null, null, a, ull);
}
and it just magically works calling the C variadic fn was really impressive. I even added a static assert to make sure the length of A was an even number at compile time.
The following line:
Is dropped silently without warning, I believe due to
...
variadic arguments, or__VA_ARGS__
symbol.No need to deal with variadic macros, but a warning is important so it can be added by hand.
Kind regards
The text was updated successfully, but these errors were encountered: