Saturday, November 27, 2010

Namespaces

When the goal is only to encapsulate names, namespaces are preferred over classes.

Reference: The C++ Programming Language by Bjarne Stroustrup. Addison-Wesley, 2000. Section:C.10.3

No comments:

Post a Comment