Skip to content

Commit

Permalink
Update sstd_library_element_at.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ngzHappy committed Jul 20, 2019
1 parent 4cf6a0e commit d989add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sstd_library_element_at/sstd_library_element_at.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace sstd::the {
inline ConstructAtBasic&operator=(ConstructAtBasic &&) = delete;
protected:

inline void destory_at() {
inline void impl_destory_at() {
if constexpr (!std::is_trivially_destructible_v<ThisType>) {
std::destroy_at(thePointer());
}
Expand Down Expand Up @@ -124,7 +124,7 @@ namespace sstd::the {
public:
using Super::Super;
inline ~ConstructAtBasic() {
Super::destory_at();
Super::impl_destory_at();
}
};

Expand Down

0 comments on commit d989add

Please sign in to comment.