Skip to content

Commit

Permalink
#138: Correct dynamic_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed Oct 26, 2020
1 parent fe6baf8 commit 14a0ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkpoint/dispatch/vrt/object_registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Registrar<ObjT>::Registrar() {
sizeof(ObjT),
[]() -> void* { return std::allocator<ObjT>{}.allocate(1); },
[](void* buf) -> BaseType* { return dispatch::Reconstructor<ObjT>::constructAllowFail(buf); },
[](BaseType* buf) -> ObjT* { return dynamic_cast<ObjT>(buf); }
[](BaseType* buf) -> ObjT* { return dynamic_cast<ObjT*>(buf); }
}
);
}
Expand Down

0 comments on commit 14a0ec3

Please sign in to comment.