Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/support/istring.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ struct IString {

std::string_view view() const { return str.view(); }

IString() = default;
// Use an explicit constructor instead of `= default` because some older
// compilers (e.g. Apple Clang in older Xcode versions) delete the default
// constructor if there is a const member without an in-class initializer,
// even if that member's type has a default constructor.
// FIXME: Use `= default` once we bump the min clang/Xcode version that
// we support.
IString() : str({nullptr}) {}

IString(View v) : str(v) {}

Expand Down
Loading