Skip to content

Commit 8fa4168

Browse files
committed
fix comment
1 parent ceb4932 commit 8fa4168

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/beman/inplace_vector/inplace_vector.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,8 @@ class inplace_vector : public inplace_vector_base<T, Capacity> {
574574
#ifdef __cpp_constexpr_dynamic_alloc
575575
auto final = std::construct_at(end(), std::forward<Args>(args)...);
576576
#else
577-
// Note placement new may not be not constexpr friendly
577+
// Note: placement-new may not be constexpr friendly
578+
// Avoiding placement-new may allow inplace_vector to be constexpr friendly
578579
auto final = ::new (end()) T(std::forward<Args>(args)...);
579580
#endif
580581
this->change_size(1);

0 commit comments

Comments
 (0)