
14 Jun
2007
14 Jun
'07
8:42 p.m.
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