Skip to content

Commit

Permalink
Fix nvcc compile error (#2477)
Browse files Browse the repository at this point in the history
Co-authored-by: Niels Kristian Kjærgård Madsen <nkm@kvantify.dk>
  • Loading branch information
nielskm and nielskm committed Jul 6, 2022
1 parent 5a1ef7e commit 5f9109a
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*>(static_cast<void*>(data));
return *static_cast<T const*>(static_cast<void const*>(data));
}


Expand Down

0 comments on commit 5f9109a

Please sign in to comment.