Skip to content

std::format, concepts, range-for using and string_view#298

Open
ahcorde wants to merge 1 commit into
ahcorde/rolling/cpp20from
ahcorde/rolling/cpp20_part2
Open

std::format, concepts, range-for using and string_view#298
ahcorde wants to merge 1 commit into
ahcorde/rolling/cpp20from
ahcorde/rolling/cpp20_part2

Conversation

@ahcorde

@ahcorde ahcorde commented Jul 17, 2026

Copy link
Copy Markdown
Contributor
  • std::format
  • concepts
  • range-for
  • using
  • string_view

Claude Opus 4.7

Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
@ahcorde ahcorde self-assigned this Jul 17, 2026
@mergify

mergify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Comment on lines +50 to +57
/// Satisfied when interface T can be constructed from Args according to its InterfaceTraits.
/**
* Replaces the std::enable_if_t<class_loader::is_interface_constructible_v<...>> SFINAE guard
* on the create*Instance() methods with a named constraint, yielding clearer diagnostics.
*/
template<typename T, typename ... Args>
concept InterfaceConstructible = class_loader::is_interface_constructible_v<T, Args...>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

class_loader already provides this concept. I think we should use that, instead of reimplementing it.

Then we can replace all uses of InterfaceConstructible with class_loader::InterfaceConstructible

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@ahcorde this makes sense to me. Could you make the change?

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