$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2007-06-14 16:42:43
on Thu Jun 14 2007, Eric Niebler <eric-AT-boost-consulting.com> wrote:
> template<typename T> struct static_const
> {
> static T const value;
> };
>
> template<typename T>
> T const static_const<T>::value = {};
>
> struct placeholder {};
>
> // This is *supposed* to be statically initialized but many
> // compilers do dynamic initialization for it. :-(
> placeholder const &_1 = static_const<placeholder>::value;
I thought it was just MSVC. Any others?
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com