T
Tom St Denis
Sidney Cadot said:Arthur said:jacob navia wrote:
[re someone's saying his implementation encroached user namespaces]
Did you overlooked
#include <qfloat.h>
???
Nothing invades the user names space unless he/she wants it so.
Fair enough. However, your program invokes UB in both C and C++ by using
%qf in a printf formatting string, I believe.
Well, duh. His program invokes undefined behavior, or at least
implementation-specified behavior (I don't feel like checking), by
#including <qfloat.h> in the first place.
You don't know that, since you haven't seen qfloat.h (it may be
perfectly compliant). All we know is that UB is introduced by the printf
format string.
First line of qfloat.h
#define printf qfloat_compatible_printf
;-)
Tom