[libcxx-commits] [libcxx] [libc++] Define deque::__block_size inline (PR #89422)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 6 02:48:29 PDT 2024


================
@@ -547,7 +543,7 @@ private:
     deque* const __base_;
   };
 
-  static const difference_type __block_size;
+  static _LIBCPP_CONSTEXPR const difference_type __block_size = __deque_block_size<_ValueType, _DiffType>::value;
----------------
frederick-vs-ja wrote:

Copy-pasta?
```suggestion
  static _LIBCPP_CONSTEXPR const difference_type __block_size = __deque_block_size<_Tp, _DiffType>::value;
```

https://github.com/llvm/llvm-project/pull/89422


More information about the libcxx-commits mailing list