Thursday, 22 August 2013

C++ headers, foo.h vs cfoo

C++ headers, foo.h vs cfoo

If one actually wants functions placed into the global namespace, then is
there any benefit to using this style:
#include <cfoo>
using namespace std;
Or can one just do
#include <foo.h>
for an identical effect?

No comments:

Post a Comment