When to use a namespace or a struct?

Posted by Justen on Stack Overflow See other posts from Stack Overflow or by Justen
Published on 2010-04-10T17:55:36Z Indexed on 2010/04/10 18:03 UTC
Read the original article Hit count: 329

Filed under:
|
|
|

I was just reading a little bit on them from http://www.cplusplus.com/doc/tutorial/namespaces/ and it seems like a struct is capable of the same things? Or even a class for that matter. Maybe someone here can better define what a namespace is, and how it differs from a struct/class?

© Stack Overflow or respective owner

Related posts about c++

Related posts about namespace