Initialize arrays. The const case was illegal without an initializer.

This commit is contained in:
Peter Dimov committed 2014-06-06 23:12:58 +03:00
1 parent 13d1a807ad
commit 231f4406e9
1 file changed
+2 -2
+2 -2
View File
@@ -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 );
}