From: llewelly@xmission.com
To: hartmut.schirmer@arcor.de
Cc: gcc-help@gcc.gnu.org
Subject: Re: Omit guard on static objects ?
Date: Tue, 27 Apr 2004 14:16:00 -0000 [thread overview]
Message-ID: <s3r3c6p8q0w.fsf@xmission.xmission.com> (raw)
In-Reply-To: <27995117.1083053470687.JavaMail.ngmail@webmail05.arcor-online.net>
hartmut.schirmer@arcor.de writes:
> Hi,
>
> is there any way to omit the automatic construction guard
> created in
>
> int foo()
> {
> static class A a;
> ...
> }
If you define A so that its constructor and destructor are trivial,
the gaurd will not be generated, unless there is an initializer
for a.
Otherwise, the gaurd will always be present.
prev parent reply other threads:[~2004-04-27 14:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-27 8:11 hartmut.schirmer
2004-04-27 14:16 ` llewelly [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s3r3c6p8q0w.fsf@xmission.xmission.com \
--to=llewelly@xmission.com \
--cc=gcc-help@gcc.gnu.org \
--cc=hartmut.schirmer@arcor.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).