Description of wxMakeGuard (PR #26769)

29 views
Skip to first unread message

Yannick Duchêne

unread,
Aug 1, 2026, 9:32:08 AM (3 days ago) Aug 1
to wx-...@googlegroups.com, Subscribed

I’m not sure about this one.

When I first saw the description of wxMakeGuard, I bugged seeing what was looking like a variadic parameter, not at the end where it should be. To understand, I had a look at the source and saw there are multiple definitions, which explains why the comment mentions overloading.

The change exposes the implementation defined limit. I’m unsure about that, because it seems it is not to be exposed. On an other hand, there is a single implementation, this is not like an interface to various possible implementations. I still left the note about uncertainty, because it may tell their count may vary in future versions.

In the HTML, the explanation appears only for the first definition, but the three other definitions follow immediately after.

The original signature is kept in a comment presenting it as a pseudo‑code illustration, which it was.

In the interface description, the template parameters are typename, while in the source, there are class. May be it makes a difference with dynamic dispatch, I don’t know C++ well enough to tell. I kept what was in the original, typename.

For the return type, I also kept what's in the original, which should be OK, since this type is a base type for the really returned types.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26769

Commit Summary

  • e7c367d Description of wxMakeGuard

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26769@github.com>

VZ

unread,
Aug 1, 2026, 4:13:49 PM (3 days ago) Aug 1
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26769)

I'm not sure why do we need to change this at all, but if we do, I'd rather use vararg template syntax — which is not how it is defined, but close enough and more clear. Could you please change the PR to do this instead?

But it would still be good to know what problem are you trying to fix?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26769/c5153223972@github.com>

Yannick Duchêne

unread,
Aug 2, 2026, 2:44:57 AM (2 days ago) Aug 2
to wx-...@googlegroups.com, Push

@Hibou57 pushed 1 commit.

  • 222e9ab Variadic template interface for wxMakeGuard


View it on GitHub or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26769/before/e7c367d7b6567914b2e142e6b0f2def2b7e5f390/after/222e9abda5523065ca3c6d7b4763341aa129d6ec@github.com>

Yannick Duchêne

unread,
Aug 2, 2026, 2:52:11 AM (2 days ago) Aug 2
to wx-...@googlegroups.com, Subscribed
Hibou57 left a comment (wxWidgets/wxWidgets#26769)

Suggestion applied, and this version is nicer, indeed (originally, I wanted to be as close as possible to the original).

This is not critical. Initially, this was just for declarations to be parsable (or correct), the previous was not. Then this was the idea to have a more easy to understand description.

By the way, the idea of distinct includes for interface documentation, is clever.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26769/c5156029897@github.com>

VZ

unread,
Aug 2, 2026, 1:28:28 PM (2 days ago) Aug 2
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26769)

Thanks, I'll apply this soon with some minor modifications.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26769/c5159514420@github.com>

VZ

unread,
Aug 2, 2026, 3:40:23 PM (2 days ago) Aug 2
to wx-...@googlegroups.com, Subscribed

Closed #26769 via bd44bef.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26769/issue_event/28856571481@github.com>

Reply all
Reply to author
Forward
0 new messages