Fix clang compilation
This commit is contained in:
parent
b1ba7fc4d2
commit
144a35be30
|
@ -832,7 +832,7 @@ const CommandDesc declare_option_cmd = {
|
|||
else if (parser[0] == "str")
|
||||
opt = &opts.declare_option<String>(parser[1], docstring, "", flags);
|
||||
else if (parser[0] == "regex")
|
||||
opt = &opts.declare_option<Regex>(parser[1], docstring, {}, flags);
|
||||
opt = &opts.declare_option<Regex>(parser[1], docstring, Regex{}, flags);
|
||||
else if (parser[0] == "int-list")
|
||||
opt = &opts.declare_option<std::vector<int>>(parser[1], docstring, {}, flags);
|
||||
else if (parser[0] == "str-list")
|
||||
|
|
|
@ -65,7 +65,7 @@ public:
|
|||
constexpr StringView() : m_data{nullptr}, m_length{0} {}
|
||||
constexpr StringView(const char* data, ByteCount length)
|
||||
: m_data{data}, m_length{length} {}
|
||||
constexpr StringView(const char* data) : m_data{data}, m_length{(int)strlen(data)} {}
|
||||
StringView(const char* data) : m_data{data}, m_length{(int)strlen(data)} {}
|
||||
constexpr StringView(const char* begin, const char* end) : m_data{begin}, m_length{(int)(end - begin)} {}
|
||||
StringView(const String& str) : m_data{str.data()}, m_length{str.length()} {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user