Fix nvcc compile error (#2477)

Co-authored-by: Niels Kristian Kjærgård Madsen <nkm@kvantify.dk>
This commit is contained in:
Niels Kristian Kjærgård Madsen 2022-07-07 00:03:02 +02:00 committed by GitHub
parent 5a1ef7e4a6
commit 5f9109a8dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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