mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 19:43:33 +01:00
18 lines
336 B
C++
18 lines
336 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vcpkg/base/zstringview.h>
|
|
|
|
namespace vcpkg
|
|
{
|
|
struct StringLiteral : ZStringView
|
|
{
|
|
template<int N>
|
|
constexpr StringLiteral(const char (&str)[N]) : ZStringView(str)
|
|
{
|
|
}
|
|
|
|
operator std::string() const { return std::string(data(), size()); }
|
|
};
|
|
}
|