[DynInst_API:] [dyninst/dyninst] 46ea30: Avoid possible copy in BPatch::createEnum (#1390)


Date: Wed, 01 Mar 2023 11:33:29 -0800
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 46ea30: Avoid possible copy in BPatch::createEnum (#1390)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 46ea3009e1e0e27bd035ac3152dc772bf861f3fd
      https://github.com/dyninst/dyninst/commit/46ea3009e1e0e27bd035ac3152dc772bf861f3fd
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2023-03-01 (Wed, 01 Mar 2023)

  Changed paths:
    M dyninstAPI/src/BPatch.C

  Log Message:
  -----------
  Avoid possible copy in BPatch::createEnum (#1390)

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] 46ea30: Avoid possible copy in BPatch::createEnum (#1390), Tim Haines <=