diff --git a/libc/src/unistd/getopt.cpp b/libc/src/unistd/getopt.cpp index 70ca454315d3e..d063a43202136 100644 --- a/libc/src/unistd/getopt.cpp +++ b/libc/src/unistd/getopt.cpp @@ -22,6 +22,9 @@ namespace __llvm_libc { template struct RefWrapper { + RefWrapper() = delete; + constexpr RefWrapper(T *p) : ptr{p} {} + constexpr RefWrapper(const RefWrapper &) = default; RefWrapper &operator=(const RefWrapper &) = default; operator T &() { return *ptr; } T &get() { return *ptr; }