Re: "static" question
From: Fraser Ross (fraserATmembers.v21.co.unitedkingdom)
Date: 04/19/04
- Next message: Dan Bloomquist: "Re: Modifying through pointer-to-const"
- Previous message: Christopher Benson-Manica: "Re: g++ (3.3) bug?"
- In reply to: Alf P. Steinbach: "Re: "static" question"
- Next in thread: Alf P. Steinbach: "Re: "static" question"
- Reply: Alf P. Steinbach: "Re: "static" question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 19 Apr 2004 20:00:04 +0100
Thats wrong. A static object of a class in a function will be constructed
only with the first call of the function and destructed only when the
program terminates although it might not be destructed with some abnormal
terminations.
Fraser.
"Alf P. Steinbach"
> for a function it is a single variable instead of
> an automatic variable created & destroyed for each call of the function.
- Next message: Dan Bloomquist: "Re: Modifying through pointer-to-const"
- Previous message: Christopher Benson-Manica: "Re: g++ (3.3) bug?"
- In reply to: Alf P. Steinbach: "Re: "static" question"
- Next in thread: Alf P. Steinbach: "Re: "static" question"
- Reply: Alf P. Steinbach: "Re: "static" question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]