MessageBox etc. in a constructor, would you do that?
what do you think, is showing a message box in a constructor of some class a bad practice? (or any other interaction with the user while initializing an object)
Go to Source
what do you think, is showing a message box in a constructor of some class a bad practice? (or any other interaction with the user while initializing an object)
Go to Source
I’m converting some code that someone else wrote. One of the header files contains this inline function:-
Code:
static inline float minus_infinity() { return -HUGE_VAL; }
In VC++ HUGE_VAL isn’t a float; it’s a double, so will this function actually return the correct value? I read somewhere (admittedly for C#) that overflowing a float causes it to return [...]