safe_conversion.hpp
Go to the documentation of this file.
56 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
59 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
63 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
90 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
93 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
97 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
103 OPM_THROW(std::invalid_argument, fmt::format("Trying to convert the negative number {} to size_t.", i));
Definition: autotuner.hpp:29 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:52 __host__ __device__ 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:86 |