Re[2]: Is this code legal?

2009-10-06 Thread Sergey Sadovnikov
Hello, Paolo. Tuesday, October 6, 2009 at 2:05:10 PM you wrote: PB> On 10/05/2009 09:29 PM, Sergey Sadovnikov wrote: >> Can anybody explain why line marked with '{*1}' produce this error >> message: PB> I think it's because there is no constructor for array that takes an PB> initializer_list.

Re: Is this code legal?

2009-10-06 Thread Paolo Bonzini
On 10/05/2009 09:29 PM, Sergey Sadovnikov wrote: Can anybody explain why line marked with '{*1}' produce this error message: I think it's because there is no constructor for array that takes an initializer_list. I get this message if I change your {*2} line to: std::array < wchar_t, sizeof.

Is this code legal?

2009-10-05 Thread Sergey Sadovnikov
Hello all. I try to compile the following code sample: (with MinGW gcc version 4.5.0 20090819 (experimental) (GCC)) #include #include #include template struct Message { std::array m_Message; Message() : m_Message{Chars...} // {*1} { std::array msg