$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Steven Watanabe (steven_at_[hidden])
Date: 2007-02-05 16:54:36
AMDG
Andreas Huber <ahd6974-spamgroupstrap <at> yahoo.com> writes:
>
> Steven Watanabe wrote:
> >
> > GetPodInstance() is probably safe, but the standard does
> > not require it. "A local object of POD type (3.9) with static
> > storage duration initialized with constant-expressions is
> > initialized before its block is first entered." (6.7/4)
>
> Interesting, from the wording above I would have concluded that the
> standard *does* require it.
>
To be safe the compiler would have to initialize
the object statically. i.e. before any code whatsoever
is executed. The wording does not require that.
In Christ,
Steven Watanabe