Re: Omit guard on static objects ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hartmut.schirmer@xxxxxxxx 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. 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux