Skip to content

Conversation

vinniefalco
Copy link
Member

No description provided.

@vinniefalco vinniefalco requested a review from Copilot September 15, 2025 19:06
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR focuses on improving code organization and documentation clarity. The main purpose is to move type traits utilities into a proper namespace and fix minor documentation issues.

Key changes:

  • Moved void_t utility into detail namespace for better code organization
  • Updated all references to use the namespaced version (detail::void_t)
  • Fixed minor documentation formatting and grammar issues

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
include/boost/buffers/detail/config.hpp Moved void_t utility into detail namespace
include/boost/buffers/dynamic_buffer.hpp Updated to use detail::void_t and reformatted template parameters
include/boost/buffers/detail/type_traits.hpp Updated to use detail::void_t
include/boost/buffers/detail/is_span.hpp Updated to use detail::void_t
include/boost/buffers/buffer.hpp Updated to use detail::void_t
doc/modules/ROOT/pages/1.intro.adoc Fixed grammar and removed extra whitespace in documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

two separate contiguous memory regions, occur in design patterns with sufficient
frequency that the library provides a custom implementation for representing
them. Objects of type cpp:const_buffer_pair[] or cpp::mutable_buffer_pair[] are
them. Objects of types cpp:const_buffer_pair[] and cpp:mutable_buffer_pair[] are
Copy link
Preview

Copilot AI Sep 15, 2025

Choose a reason for hiding this comment

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

The word 'types' should be 'type' to maintain grammatical consistency with the singular 'Objects'.

Suggested change
them. Objects of types cpp:const_buffer_pair[] and cpp:mutable_buffer_pair[] are
them. Objects of type cpp:const_buffer_pair[] and cpp:mutable_buffer_pair[] are

Copilot uses AI. Check for mistakes.

Copy link

Choose a reason for hiding this comment

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

Perhaps a style comment, I think the original is more grammatically correct.
(also the copilot suggestion is the worst of the 3)

@cppalliance-bot
Copy link

An automated preview of the documentation is available at https://44.buffers.prtest.cppalliance.org/index.html

Copy link

codecov bot commented Sep 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.69%. Comparing base (7312c25) to head (ed3b962).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #44   +/-   ##
========================================
  Coverage    98.69%   98.69%           
========================================
  Files           13       13           
  Lines          611      611           
========================================
  Hits           603      603           
  Misses           8        8           
Files with missing lines Coverage Δ
include/boost/buffers/buffer.hpp 100.00% <100.00%> (ø)
include/boost/buffers/dynamic_buffer.hpp 81.57% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7312c25...ed3b962. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cppalliance-bot
Copy link

An automated preview of the documentation is available at https://44.buffers.prtest.cppalliance.org/index.html

@cppalliance-bot
Copy link

An automated preview of the documentation is available at https://44.buffers.prtest.cppalliance.org/index.html

@cppalliance-bot
Copy link

An automated preview of the documentation is available at https://44.buffers.prtest.cppalliance.org/index.html

two separate contiguous memory regions, occur in design patterns with sufficient
frequency that the library provides a custom implementation for representing
them. Objects of type cpp:const_buffer_pair[] or cpp::mutable_buffer_pair[] are
them. Objects of types cpp:const_buffer_pair[] and cpp:mutable_buffer_pair[] are
Copy link

Choose a reason for hiding this comment

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

Perhaps a style comment, I think the original is more grammatically correct.
(also the copilot suggestion is the worst of the 3)

//------------------------------------------------

// avoid all of Boost.TypeTraits for just this
namespace detail {
Copy link

Choose a reason for hiding this comment

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

Do these definitions better belong here or in buffers/detail/type_traits.hpp ?

Copy link
Member Author

Choose a reason for hiding this comment

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

it could be moved I suppose. the thinking is that we can avoid detail/type_traits.hpp in some cases

Copy link
Member Author

Choose a reason for hiding this comment

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

for example detail/is_span.hpp would have to include detail/type_traits.hpp which includes , needlessly if we move void_t

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.

3 participants