[all-commits] [llvm/llvm-project] 24d2a0: [libc++] Make SFINAE'd member functions in string ...

Eric via All-commits all-commits at lists.llvm.org
Wed Jan 15 14:00:54 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 24d2a015eade6e71e7c684c69510f067bdd55892
      https://github.com/llvm/llvm-project/commit/24d2a015eade6e71e7c684c69510f067bdd55892
  Author: Eric Fiselier <eric at efcs.ca>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M libcxx/include/string

  Log Message:
  -----------
  [libc++] Make SFINAE'd member functions in string mutually exclusive.

This patch is needed in order to work around a GCC bug that fails to
explicitly instantiate a non-template function of a class template when
there is another overload that's a function template.
(See https://godbolt.org/z/4bUQ_b)

This patch SFINAE's away the function templates when the argument is
a basic_string.




More information about the All-commits mailing list