21 Jan
2014
21 Jan
'14
1:23 a.m.
On 21/01/2014 02:21, Quoth John Maddock:
Boost does define it's own intmax_t etc *in namespace boost*, if you import these into the global namespace then expect things to break, sorry but that's the way it's *always* been. My guess is it worked before because the Boost and std lib versions happened to be identical by chance.
My rule of thumb is to never ever do a "using namespace" in the global namespace in a header file, or someplace prior to the point after all #includes in a cpp file. (And be wary of doing it even then.) Strategic "using" or even "using namespace" from other namespaces can be useful, though.