1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

static variables

Discussion in 'C++' started by frs, Sep 5, 2010.

  1. frs

    frs New Member

    Joined:
    Sep 5, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have this statement inside a function, that opens a XML file.

    Code:
    static auto_ptr remoteXML (Remote_("../config/remote_conf.xml"));
    The XML file is opened every-time I call the function or is opened only in the first call??
     

Share This Page