Skip to content

Commit

Permalink
"* operation traits steal check"
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualGMQ committed Dec 1, 2023
1 parent 536f49a commit 10fcfbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cmake-build
.vscode
compile_commands.json
compile_commands.json
.cache
2 changes: 1 addition & 1 deletion include/mirrow/drefl/operation_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct type_operation_traits {
}

static void steal_assignment(void* dst, void* src) {
if constexpr (std::is_copy_assignable_v<T>) {
if constexpr (std::is_move_assignable_v<T>) {
*(T*)(dst) = std::move(*(T*)(src));
} else {
MIRROW_LOG("type don't support copy assignment");
Expand Down

0 comments on commit 10fcfbc

Please sign in to comment.