Re: value initialization and array data member

2010-11-05 Thread Paolo Carlini
... oh well, this is enough: struct A { int arr[1]; constexpr A() : arr() { } }; Paolo.

Re: value initialization and array data member

2010-11-05 Thread Paolo Carlini
Hi, > On 11/05/2010 09:03 PM, Gabriel Dos Reis wrote: >> I'm looking into std::bitset with respect to constexpr issue. >> My understanding has always been that one can use the >> syntax `member()' to value-initialize an array data member >> `member'. > I believe so. Thanks Gaby and Jason. I wanted

Re: value initialization and array data member

2010-11-05 Thread Jason Merrill
On 11/05/2010 09:03 PM, Gabriel Dos Reis wrote: I'm looking into std::bitset with respect to constexpr issue. My understanding has always been that one can use the syntax `member()' to value-initialize an array data member `member'. I believe so. Jason

value initialization and array data member

2010-11-05 Thread Gabriel Dos Reis
Hi Jason, I'm looking into std::bitset with respect to constexpr issue. My understanding has always been that one can use the syntax `member()' to value-initialize an array data member `member'. However, std/biset uses the notation `member({ })'. Is that required? Especially for a mem-initializ