|
safe_conversion.hpp
Go to the documentation of this file.
60 "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.");
67 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
73 fmt::format(fmt::runtime("Trying to convert {} to int, but it is out of range. Maximum possible int: {}. "),
101 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
104 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
108 "Weird architecture or my understanding of the standard is flawed. Better have a look at this function.");
115 OPM_THROW(std::invalid_argument, fmt::format(fmt::runtime("Trying to convert the negative number {} to size_t."), i));
Definition: autotuner.hpp:30 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:56 __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:97 |