mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-12 14:01:43 +00:00
Try to work around an MSVC bug
Although, perhaps I shouldn't be generating over 1000 runs for a test.
This commit is contained in:
parent
80de85f217
commit
a897843f6c
@ -190,12 +190,16 @@ static inline state& get_state()
|
|||||||
BOOST_PP_SEQ_ELEM(1, product), \
|
BOOST_PP_SEQ_ELEM(1, product), \
|
||||||
BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_TAIL(product)))
|
BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_TAIL(product)))
|
||||||
|
|
||||||
|
// Need to wrap UNORDERED_SUB_TEST in a block to avoid an msvc bug.
|
||||||
|
// https://support.microsoft.com/en-gb/help/315481/bug-too-many-unnested-loops-incorrectly-causes-a-c1061-compiler-error-in-visual-c
|
||||||
#define UNORDERED_MULTI_TEST_OP2(name, n, params) \
|
#define UNORDERED_MULTI_TEST_OP2(name, n, params) \
|
||||||
|
{ \
|
||||||
UNORDERED_SUB_TEST(BOOST_PP_STRINGIZE( \
|
UNORDERED_SUB_TEST(BOOST_PP_STRINGIZE( \
|
||||||
BOOST_PP_SEQ_FOLD_LEFT(UNORDERED_TEST_OP_JOIN, name, params))) \
|
BOOST_PP_SEQ_FOLD_LEFT(UNORDERED_TEST_OP_JOIN, name, params))) \
|
||||||
{ \
|
{ \
|
||||||
for (int i = 0; i < n; ++i) \
|
for (int i = 0; i < n; ++i) \
|
||||||
name BOOST_PP_SEQ_TO_TUPLE(params); \
|
name BOOST_PP_SEQ_TO_TUPLE(params); \
|
||||||
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user