safe_conversion.hpp
Go to the documentation of this file.
55 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
58 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
62 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
89 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
92 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
96 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
100 OPM_THROW(std::invalid_argument, fmt::format("Trying to convert the negative number {} to size_t.", i));
Definition: cublas_safe_call.hpp:32 int to_int(std::size_t s) to_int converts a (on most relevant platforms) 64 bits unsigned size_t to a signed 32 bits signed int Definition: safe_conversion.hpp:51 std::size_t to_size_t(int i) to_size_t converts a (on most relevant platforms) a 32 bit signed int to a 64 bits unsigned int Definition: safe_conversion.hpp:85 |