[PATCH] D105457: [clang] Refactor AST printing tests to share more infrastructure

Nathan Ridge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 14 14:04:17 PDT 2021


nridge added a comment.

Making the default argument a non-lambda seems to be sufficient to avoid the error:

  template <typename>
  class function {
  public:
    template <typename F>
    function(F) {}
  };
  
  void DefaultFunc();
  
  template <typename M>
  void Foo(M, function<void()> = DefaultFunc);
  
  void Bar() {
    Foo(42);
    Foo(42.0);
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105457/new/

https://reviews.llvm.org/D105457



More information about the cfe-commits mailing list