Wednesday, December 1, 2010

The Unnamed Namespace

The following are functionally equivalent:
int static func() {return 0;}
namespace {int func() {return 0;}}

The namespace version is preferred.

No comments:

Post a Comment