[DynInst_API:] [dyninst/dyninst] b11bd3: Avoid possible copy in BPatch::createEnum


Date: Tue, 28 Feb 2023 14:39:41 -0800
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] b11bd3: Avoid possible copy in BPatch::createEnum
  Branch: refs/heads/bpatch_createEnum_copy_fix
  Home:   https://github.com/dyninst/dyninst
  Commit: b11bd3b5803c8b13423592b9df907f418db81a9a
      https://github.com/dyninst/dyninst/commit/b11bd3b5803c8b13423592b9df907f418db81a9a
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M dyninstAPI/src/BPatch.C

  Log Message:
  -----------
  Avoid possible copy in BPatch::createEnum

The Type class doesn't have a user-defined copy constructor and its
implicit declaration is deprecated in C++20. Rearranging the construction
here removes the possibility of copying.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] b11bd3: Avoid possible copy in BPatch::createEnum, Tim Haines <=