Skip to content

Add a default allocator argument to the protocol primary template (3/20) - #103

Open
jbcoe wants to merge 1 commit into
reflection/01-rename-vtable-fnsfrom
reflection/02-default-allocator
Open

Add a default allocator argument to the protocol primary template (3/20)#103
jbcoe wants to merge 1 commit into
reflection/01-rename-vtable-fnsfrom
reflection/02-default-allocator

Conversation

@jbcoe

@jbcoe jbcoe commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Moves the std::allocator default from the definition to the
forward declaration, so protocol is valid wherever only the
declaration is visible. A default can't be repeated on the same
parameter, so the definition drops its own.

@jbcoe jbcoe changed the title Add a default allocator argument to the protocol primary template Add a default allocator argument to the protocol primary template (3/20) Jul 27, 2026
@jbcoe
jbcoe marked this pull request as ready for review July 28, 2026 10:56
@jbcoe
jbcoe force-pushed the reflection/01-rename-vtable-fns branch from 1ba3f41 to b40322a Compare July 28, 2026 18:27
@jbcoe
jbcoe force-pushed the reflection/02-default-allocator branch from 17a08ff to 5ed8351 Compare July 28, 2026 18:27
@jbcoe
jbcoe force-pushed the reflection/01-rename-vtable-fns branch from b40322a to df6a602 Compare July 28, 2026 20:22
@jbcoe
jbcoe force-pushed the reflection/02-default-allocator branch from 5ed8351 to b85d3af Compare July 28, 2026 20:22
@RyanJK5
RyanJK5 self-requested a review July 29, 2026 00:20
Moves the std::allocator<T> default from the definition to the
forward declaration, so protocol<T> is valid wherever only the
declaration is visible. A default can't be repeated on the same
parameter, so the definition drops its own.
@jbcoe
jbcoe force-pushed the reflection/01-rename-vtable-fns branch from df6a602 to 00d7249 Compare July 29, 2026 09:48
@jbcoe
jbcoe force-pushed the reflection/02-default-allocator branch from b85d3af to 943ed1e Compare July 29, 2026 09:48
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.

2 participants