[all-commits] [llvm/llvm-project] 20667a: [libc++] Include range access headers in `<optiona...

A. Jiang via All-commits all-commits at lists.llvm.org
Fri Aug 7 18:49:21 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20667a67e6a47351dcf29acc5b4fb68d580ed6cf
      https://github.com/llvm/llvm-project/commit/20667a67e6a47351dcf29acc5b4fb68d580ed6cf
  Author: A. Jiang <de34 at live.cn>
  Date:   2026-08-08 (Sat, 08 Aug 2026)

  Changed paths:
    M libcxx/include/optional
    M libcxx/test/std/iterators/iterator.range/mandatory_inclusions.gen.py

  Log Message:
  -----------
  [libc++] Include range access headers in `<optional>` only since C++26 (#214688)

Inclusions of internal range access headers address LWG4131 which
patches P3168R2 "Give `std::optional` Range Support". As P3168R2 is
certainly a new feature in C++26, these includes are unnecessary in old
modes.

It was reported that these increased the size of `<optional>` by ~8%, so
probably it is better to avoid such cost in old modes.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list