[all-commits] [llvm/llvm-project] 5bca8f: [orc-rt] Allow move_only_function to capture by lv...

Lang Hames via All-commits all-commits at lists.llvm.org
Wed Aug 27 16:31:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bca8f2f97d23c3562544e959702826eb20696af
      https://github.com/llvm/llvm-project/commit/5bca8f2f97d23c3562544e959702826eb20696af
  Author: Lang Hames <lhames at gmail.com>
  Date:   2025-08-28 (Thu, 28 Aug 2025)

  Changed paths:
    M orc-rt/include/orc-rt/move_only_function.h
    M orc-rt/unittests/move_only_function-test.cpp

  Log Message:
  -----------
  [orc-rt] Allow move_only_function to capture by lvalue-reference. (#155716)

Store std::decay_t<Callable> to ensure that we can initialize via lvalue
references:

  auto NamedNoop = [](){};
   move_only_function<void()> Noop(NamedNoop); // <- no longer an error!



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