mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-14 11:40:35 +07:00
fix dtor
This commit is contained in:
2
TODO.md
2
TODO.md
@@ -1,6 +1,5 @@
|
||||
# meta.hpp
|
||||
|
||||
- exception class
|
||||
- metadata
|
||||
|
||||
* argument defaults
|
||||
@@ -10,3 +9,4 @@
|
||||
- (?) enum_type::create, number_type::create, and so on
|
||||
- (?) move-only value type support
|
||||
- (?) type names
|
||||
- (?) properties
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace meta_hpp::detail
|
||||
|
||||
class_type* raw_ptr = ptr.cast<class_type*>();
|
||||
if ( raw_ptr ) {
|
||||
raw_ptr->~Class();
|
||||
std::unique_ptr<class_type>{raw_ptr}.reset();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace
|
||||
static int arg_unbounded_const_arr(const ivec2 vs[]) { return vs[0].x + vs[0].y + vs[1].x + vs[1].y; }
|
||||
};
|
||||
|
||||
bool operator==(const ivec2& l, const ivec2& r) noexcept {
|
||||
[[maybe_unused]] bool operator==(const ivec2& l, const ivec2& r) noexcept {
|
||||
return l.x == r.x && l.y == r.y;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user