浏览代码

fix(libstdc++): make deleted addressof const T*

greatbridf 1 年之前
父节点
当前提交
2d8ca9bdaa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gblibstdc++/include/memory

+ 1 - 1
gblibstdc++/include/memory

@@ -25,7 +25,7 @@ addressof(T& arg) noexcept
 }
 
 template <typename T>
-T* addressof(const T&&) = delete;
+const T* addressof(const T&&) = delete;
 
 } // namespace std