mirror of
https://github.com/boostorg/core.git
synced 2025-08-17 06:21:09 +02:00
Initialize arrays. The const case was illegal without an initializer.
This commit is contained in:
@@ -126,14 +126,14 @@ int main()
|
||||
*/
|
||||
{
|
||||
int const N = 5;
|
||||
T x[ N ];
|
||||
T x[ N ] = {};
|
||||
|
||||
BOOST_TEST_EQ( boost::detail::distance( x, x + N ), N );
|
||||
}
|
||||
|
||||
{
|
||||
int const N = 5;
|
||||
T const x[ N ];
|
||||
T const x[ N ] = {};
|
||||
|
||||
BOOST_TEST_EQ( boost::detail::distance( x, x + N ), N );
|
||||
}
|
||||
|
Reference in New Issue
Block a user