We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d54bfd8 commit 68cc897Copy full SHA for 68cc897
test/test_select.cpp
@@ -116,8 +116,9 @@ struct select_test
116
117
TEST_CASE_TEMPLATE("[select]", B, BATCH_TYPES)
118
{
119
- select_test<B> Test;
120
- SUBCASE("select_dynamic") { Test.test_select_dynamic(); }
121
- SUBCASE("select_static") { Test.test_select_static(); }
+ // Allocate on heap to avoid stack overflow from excessively large object.
+ std::unique_ptr<select_test<B>> Test{new select_test<B>};
+ SUBCASE("select_dynamic") { Test->test_select_dynamic(); }
122
+ SUBCASE("select_static") { Test->test_select_static(); }
123
}
124
#endif
0 commit comments