summaryrefslogtreecommitdiffhomepage
path: root/compat/string-literal-operator.hpp
blob: e957803c66861bea9cacca80013b80b911090dc5 (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, int(N));
}