Comment 12 for bug 1786927

Revision history for this message
Sebastian Marsching (sebastian-marsching) wrote :

@Ralph and Dirk: Thanks for your work on this.

Back when I reported the bug, I also implemented a quick fix in the code that was affected by this problem. My fix was to undefine the printf macro so that the code would compile.

Obviously, the solution suggested by Ralph is much better, as it will make the redirects works. The only disadvantage of that fix is that it will not work if "printf" is defined in a different namespace. For example, if a library brought its own version of printf in its own namespace (possibly even using a different signature), a call too libns::printf(...) will still not work.

Unfortunately, I do not have any idea how we can fix this problem while still having redirects when using the "regular" version of printf.