http://fanf.livejournal.com/144696.html - Experimenting with _Generic() for parametric constness in C11.
@ch3root I believe a little bit more work is needed to make it compatible with strchr(p,c) where p has type void* or const void*.
-
-
I will have to re-read the standard’s wording about compatible types to answer that :-)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Something like using (0?(char *)0:(s)) rather than (s) in the _Generic, perhaps?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.