Skip to content

Commit

Permalink
Log: amend
Browse files Browse the repository at this point in the history
  • Loading branch information
fchn289 committed Aug 30, 2024
1 parent ad0876b commit 4ea1284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/safe_mem/SafePtr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SafePtr
// - safe-only creation, eg can't construct by raw ptr/shared_ptr that maybe unsafe
// - can't create by SafePtr(ConstructArgs...) that confuse cp constructor, make_safe() instead
// - T(ConstructArgs) SHALL mem-safe
constexpr SafePtr(nullptr_t = nullptr) noexcept {}
constexpr SafePtr(std::nullptr_t = nullptr) noexcept {}
template<typename U, typename... ConstructArgs> friend SafePtr<U> make_safe(ConstructArgs&&... aArgs);

// safe-only cast (vs shared_ptr, eg static_pointer_cast<any> is not safe)
Expand Down

0 comments on commit 4ea1284

Please sign in to comment.