Skip to content

Add iterator header to string_util.cpp - #395

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
DataDog:mainfrom
hussainjaffery:patch-1
Nov 2, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
DataDog:mainfrom
hussainjaffery:patch-1

Conversation

@hussainjaffery

@hussainjaffery hussainjaffery commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Overview

src/datadog/string_util.cpp uses std::back_inserter but doesn't include <iterator>. This adds the include.

Motivation

The file compiled only because another standard header happened to include <iterator>. In libc++ 23 (LLVM 23), that's no longer the case, so building dd-trace-cpp with it fails with no member named 'back_inserter' in namespace 'std'.

Additional Notes

Found while moving a project to LLVM 23.1.2. Building with libc++ 23 fails without this change and succeeds with it.

References

Jira ticket: LVSRCH-1606

Contributor Checklist

  • I am the author of this pull request and I own it.
  • I reviewed every line of this pull request.
  • This pull request follows the Contributing Guidelines.

@hussainjaffery
hussainjaffery requested review from a team as code owners November 2, 2026 15:18
@hussainjaffery
hussainjaffery requested review from cataphract and removed request for a team November 2, 2026 15:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T15:19:31.151270Z 05ac33f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-datadog-prod-us1-2 datadog-datadog-prod-us1-2 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

More details

The added include directly declares std::back_inserter, removing the transitive-header dependency behind the reported libc++ 23 build failure.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 05ac33f

@datadog-datadog-prod-us1-2

Copy link
Copy Markdown

Pipelines

✨ Unblock PR with BitsAI

⚠️ Warnings

Your PR has warnings. Please review the issues below.

🚦 8 Pipeline jobs failed

Development | system-tests / parametric / parametric (5) — 🔧 Needs a code fix, caused by this PR

View more details · View in GitHub Actions

Development | system-tests / parametric / parametric (6) — 🔧 Needs a code fix, caused by this PR

View more details · View in GitHub Actions

Development | system-tests / parametric / parametric (1)

View more details · View in GitHub Actions

View all 8 failed jobs.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 05ac33f | Docs | View more details | Give us feedback!

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit b225425 into DataDog:main Nov 2, 2026
27 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants