File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
tests/beman/inplace_vector Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,9 @@ add_gtest(compare)
4141add_gtest(constructors)
4242add_gtest(size_n_data)
4343add_gtest(erasure)
44+ add_gtest(modifiers)
4445add_gtest(freestanding)
4546
46- target_compile_definitions(
47- beman.inplace_vector.tests.freestanding
48- PRIVATE BEMAN_INPLACE_VECTOR_FREESTANDING_DELETED=1
49- )
50-
5147# constexpr test
5248add_executable(beman.inplace_vector.tests.constexpr constexpr.test.cpp)
5349target_link_libraries(
Original file line number Diff line number Diff line change 1- #include < gtest/gtest.h >
1+ #include < numeric >
22
33#include " gtest_setup.hpp"
4+ #include < gtest/gtest.h>
45
56namespace {
67// 23.3.14.5 Modifiers [inplace.vector.modifiers]
78template <typename Param> class Modifiers : public IVBasicTest <Param> {};
89TYPED_TEST_SUITE (Modifiers, IVAllTypes);
910
11+ #if BEMAN_INPLACE_VECTOR_FREESTANDING_DELETED
12+
1013TYPED_TEST (Modifiers, InsertSingleConstRef) {
1114 // constexpr iterator insert(const_iterator position, const T& x);
1215
@@ -429,6 +432,8 @@ TYPED_TEST(Modifiers, EmplaceBack) {
429432 EXPECT_THROW (device.emplace_back (0 ), std::bad_alloc);
430433}
431434
435+ #endif
436+
432437TYPED_TEST (Modifiers, TryEmplaceBack) {
433438 // template<class... Args>
434439 // constexpr pointer try_emplace_back(Args&&... args);
You can’t perform that action at this time.
0 commit comments