[all-commits] [llvm/llvm-project] 95d0d8: Fix constructor declarations that are invalid in C...

Richard Smith via All-commits all-commits at lists.llvm.org
Thu Feb 25 14:25:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95d0d8e9e9d10da3cfa503fbba405e740aea3cc1
      https://github.com/llvm/llvm-project/commit/95d0d8e9e9d10da3cfa503fbba405e740aea3cc1
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2021-02-25 (Thu, 25 Feb 2021)

  Changed paths:
    M llvm/include/llvm/ADT/STLExtras.h

  Log Message:
  -----------
  Fix constructor declarations that are invalid in C++20 onwards.

Under C++ CWG DR 2237, the constructor for a class template C must be
written as 'C(...)' not as 'C<T>(...)'. This fixes a build failure with
GCC in C++20 mode.

In passing, remove some other redundant '<T>' qualification from the
affected classes.




More information about the All-commits mailing list