Skip to content

Use concepts for push_back detection - #331

Open
Boulea7 wants to merge 1 commit into
boostorg:developfrom
Boulea7:fix/issue-225-explicit-object-detection
Open

Boulea7 wants to merge 1 commit into
boostorg:developfrom
Boulea7:fix/issue-225-explicit-object-detection

Conversation

@Boulea7

@Boulea7 Boulea7 commented Aug 13, 2026

Copy link
Copy Markdown

Summary

  • use a requires expression for push_back detection when concepts are enabled
  • keep the C++17 detector fallback, with both paths checking the lvalue container passed to detail::insert
  • add a Clang C++23 regression test using an explicit-object-parameter attribute

Fixes #225

Verification

  • Clang 19/C++23: the explicit-object-parameter regression failed before the change and passes after it
  • compile tests: GCC 12 and Clang 19 with C++17, C++20, and C++23
  • runtime tests: GCC 12/C++17 and Clang 19/C++20 (32 tests each)
  • CMake/Ninja with GCC 12/C++17: 32/32 CTest tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use concepts for detecting method presence

1 participant