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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice