static namespace members

Discussion in 'C++' started by Christopher Benson-Manica, Jul 30, 2003.

  1. What is the significance of a namespace member declared static, a la

    namespace a {
    static int b;
    }

    ? I understand that static locals remain allocated between procedure calls,
    but I don't see how that relates to namespace-scope variables.

    --
    Christopher Benson-Manica | Jumonji giri, for honour.
    E-mail at ataru(at)cyberspace.org |
    Christopher Benson-Manica, Jul 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben
    Replies:
    3
    Views:
    415
  2. SaravanaKumar
    Replies:
    6
    Views:
    9,386
    Tony Morris
    Oct 19, 2004
  3. JFCM
    Replies:
    4
    Views:
    5,732
  4. qazmlp
    Replies:
    2
    Views:
    390
    Andrey Tarasevich
    Jul 7, 2004
  5. Alf P. Steinbach /Usenet
    Replies:
    16
    Views:
    849
    James Kanze
    Jan 12, 2011
Loading...

Share This Page