Repository navigation
noop_snippet: qualify std::vector - #71
Merged
Merged
Conversation
noop_snippet.cpp uses vector unqualified. It only compiles because Dyninst's installed PatchCommon.h (included through PatchMgr.h) has "using std::vector;" at global scope. dyninst/dyninst#2629 removes the std using-declarations from the installed headers, and with it this file fails to build: noop_snippet.cpp:51:3: error: 'vector' was not declared in this scope Write std::vector. It compiles against Dyninst with or without that change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hainest
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
How we found it
dyninst/dyninst#2629 removes the global-scope using-directives and
stdusing-declarations from Dyninst's installed headers. Built against that install, with #70 already merged, this repository still fails in one file:What is wrong
noop_snippet.cppusesvectorunqualified. It compiles today only because the installedPatchCommon.h(included throughPatchMgr.h) hasusing std::vector;at global scope.How we fixed it
Write
std::vector. The file builds against Dyninst with or without dyninst/dyninst#2629, so this can merge first.Validation
On d87a809, all 50 targets built on mahir (x86_64, gcc), with 0 errors and 0 warnings:
Not built on aarch64 or ppc64le; the change has no architecture-specific part.
🤖 Generated with Claude Code