55 points | by jxmorris12 5 days ago
2 comments
size_t i{0};
size_t i = 0;
size_t i{0.0};
double d = 0.0; size_t i{d};
In C++, you can get the same effect without the unusual syntax by passing -Wfloat-conversion to gcc/clang, but not sure how to do that with CUDA:
In C++, you can get the same effect without the unusual syntax by passing -Wfloat-conversion to gcc/clang, but not sure how to do that with CUDA: