Skip to content

Commit

Permalink
ArrayW default ctor as constepxr
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBrumbler committed Dec 23, 2023
1 parent 3b6e429 commit 244cbd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/utils/typedefs-array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ struct ArrayW {
/// @brief Constructs an ArrayW that wraps a null value
constexpr ArrayW(std::nullptr_t nptr) noexcept : val(nptr) {}
/// @brief Default constructor wraps a nullptr array
ArrayW() noexcept : val(nullptr) {}
constexpr ArrayW() noexcept : val(nullptr) {}
template<class U>
requires (!std::is_same_v<std::nullptr_t, U> && std::is_convertible_v<U, T>)
ArrayW(std::initializer_list<U> vals) : val(Array<T>::New(vals)) {}
Expand Down

0 comments on commit 244cbd5

Please sign in to comment.