summaryrefslogtreecommitdiffhomepage
path: root/compat/string-literal-operator.hpp
blob: 3ea4eb11f582ada464db3e1af1d5682d72ce6877 (plain)
1
2
3
4
5
6
7
8
9
#pragma once

#include <QLatin1String>
#include <cstddef>

static inline constexpr auto operator"" _qstr(const char* str, std::size_t N)
{
    return QLatin1String(str, str + N);
}