Skip to content

Commit

Permalink
Use string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
chillenzer authored and fwyzard committed Jun 21, 2024
1 parent 8358941 commit 7b06ada
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions include/alpaka/core/UniformCudaHip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ namespace alpaka::uniform_cuda_hip::detail
if(std::find(std::cbegin(ignoredErrorCodes), std::cend(ignoredErrorCodes), error)
== std::cend(ignoredErrorCodes))
{
rtCheck<TApi, TThrow>(
error,
(std::string("'") + std::string(cmd) + "' returned error ").c_str(),
file,
line);
using namespace std::literals;
rtCheck<TApi, TThrow>(error, ("'"s + std::string(cmd) + "' returned error "s).c_str(), file, line);
}
else
{
Expand Down

0 comments on commit 7b06ada

Please sign in to comment.