This commit is contained in:
BlackMATov
2022-02-07 04:30:31 +07:00
parent 6c156da20d
commit 58ff962938
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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();
}
}

View File

@@ -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;
}
}