Skip to content

Commit

Permalink
Changes based on discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
nielskm committed Jul 5, 2022
1 parent 1e48970 commit ac6ea10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/catch2/benchmark/catch_constructor.hpp
Expand Up @@ -59,7 +59,7 @@ namespace Catch {
}

T const& stored_object() const {
return *static_cast<T*>(const_cast<void*>(static_cast<const void*>(data)));
return *static_cast<T const*>(static_cast<void const*>(data));
}


Expand Down

0 comments on commit ac6ea10

Please sign in to comment.