Skip to content

Commit ac83154

Browse files
committed
Fix freestanding option
1 parent 9d97dfe commit ac83154

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

include/beman/inplace_vector/config.hpp.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#ifndef BEMAN_INPLACE_VECTOR_CONFIG_HPP
55
#define BEMAN_INPLACE_VECTOR_CONFIG_HPP
66

7-
#ifndef BEMAN_INPLACE_VECTOR_FREESTANDING_DELETED
87
#cmakedefine01 BEMAN_INPLACE_VECTOR_FREESTANDING_DELETED()
9-
#endif
108

119
#endif

include/beman/inplace_vector/inplace_vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// Artifact from previous implementation, can be used as hints for optimizer
2626
#define IV_EXPECT(EXPR)
2727

28-
#if __STDC_HOSTED__ == 0 || BEMAN_INPLACE_VECTOR_FREESTANDING_DELETED
28+
#if __STDC_HOSTED__ == 0 || BEMAN_INPLACE_VECTOR_FREESTANDING_DELETED()
2929
#define BEMAN_IV_FREESTANDING_DELETE(impl) = delete
3030
#else
3131
#define BEMAN_IV_FREESTANDING_DELETE(impl) impl

tests/beman/inplace_vector/freestanding.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ TYPED_TEST_SUITE(Freestanding, IVAllTypes);
1010

1111
TYPED_TEST(Freestanding, alltypes) {
1212

13-
#if !BEMAN_INPLACE_VECTOR_FREESTANDING_DELETED
13+
#if !BEMAN_INPLACE_VECTOR_FREESTANDING_DELETED()
1414

1515
GTEST_SKIP() << "Not applicable";
1616

0 commit comments

Comments
 (0)