[DynInst_API:] [dyninst/dyninst] 26234c: Make Instruction::CFT constructor noexcept


Date: Mon, 06 Apr 2026 12:24:13 -0700
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 26234c: Make Instruction::CFT constructor noexcept
  Branch: refs/heads/thaines/cft_noexcept_ctor
  Home:   https://github.com/dyninst/dyninst
  Commit: 26234c52cb6f005c463cc66cc235a7d7452eb82a
      https://github.com/dyninst/dyninst/commit/26234c52cb6f005c463cc66cc235a7d7452eb82a
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2026-04-06 (Mon, 06 Apr 2026)

  Changed paths:
    M instructionAPI/h/Instruction.h

  Log Message:
  -----------
  Make Instruction::CFT constructor noexcept

For std::vector::emplace_back, the standard notes

  If the move constructor of T is not noexcept and is not CopyInsertable
  into *this, vector will use the throwing move constructor.

gcc-15 and newer in c++2X mode warn via '-Werror=noexcept' when the
move_if_noexcept condition fails and recommends making the ctor
noexcept. This is not a requirement, but the CI jobs build with -Werror.



To unsubscribe from these emails, change your notification settings at https://github.com/dyninst/dyninst/settings/notifications
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 26234c: Make Instruction::CFT constructor noexcept, Tim Haines <=