Skip to content

Commit

Permalink
fix construct_at
Browse files Browse the repository at this point in the history
  • Loading branch information
wjr-z committed Oct 5, 2024
1 parent e956676 commit ac6cf04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/wjr/memory/uninitialized.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ construct_at(T *ptr,
::new (static_cast<void *>(ptr)) T(std::forward<Args>(args)...);
}

template <typename T>
template <typename T, WJR_REQUIRES(!std::is_constructible_v<T, default_construct_t>)>
WJR_CONSTEXPR20 void
construct_at(T *ptr,
default_construct_t) noexcept(std::is_nothrow_default_constructible_v<T>) {
Expand Down

0 comments on commit ac6cf04

Please sign in to comment.