We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 562a5df commit 379cfafCopy full SHA for 379cfaf
2 files changed
include/boost/multi/array_ref.hpp
@@ -254,7 +254,15 @@ struct array_types : private Layout { // cppcheck-suppress syntaxError ; false
254
using layout_type::extensions;
255
using layout_type::extents;
256
257
- using typename layout_type::extensions_type;
+#ifdef _MSC_VER
258
+#pragma warning(push)
259
+#pragma warning(disable: 4996)
260
+#endif
261
+ using typename layout_type::extensions_type; // TODO(correaa) remove
262
263
+#pragma warning(pop)
264
265
+
266
using typename layout_type::extents_type;
267
268
/// Returns the index extensions (structured cartesian product of half-open ranges) for all dimensions as an `extents_type`
test/sedenion.cpp
@@ -30,15 +30,15 @@ auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugpro
30
}
31
#ifdef __clang__
32
{
33
- multi::array<int, 12> arr( multi::extents_t<12>{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, 0);
+ multi::array<int, 12> arr(multi::extents_t<12>{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, 0);
34
BOOST_TEST( arr.num_elements() == 256*2*2*2*2 );
35
36
37
- multi::array<int, 14> arr( multi::extents_t<14>{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, 0);
+ multi::array<int, 14> arr(multi::extents_t<14>{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, 0);
38
BOOST_TEST( arr.num_elements() == 256*2*2*2*2*2*2 );
39
40
41
- multi::array<int, 16> arr( multi::extents_t<16>{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, 0);
+ multi::array<int, 16> arr(multi::extents_t<16>{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, 0);
42
BOOST_TEST( arr.num_elements() == 65536 );
43
44
#endif
0 commit comments