[all-commits] [llvm/llvm-project] 6abc15: [libc++] Reduce dependencies on <iostream> from <r...

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu Oct 15 10:40:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6abc15ae3c245b6043f15d3cdedfad187888dfd5
      https://github.com/llvm/llvm-project/commit/6abc15ae3c245b6043f15d3cdedfad187888dfd5
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-10-15 (Thu, 15 Oct 2020)

  Changed paths:
    M libcxx/include/ios
    M libcxx/include/iosfwd
    M libcxx/include/random

  Log Message:
  -----------
  [libc++] Reduce dependencies on <iostream> from <random>

We included <istream> and <ostream> from <random>, but really it is
sufficient to include <iosfwd> if we make sure we access ios_base
members through a dependent type. This allows us to break a hard
dependency of <random> on locales.




More information about the All-commits mailing list