Skip to content

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented May 7, 2025

Problem:

  • field_name is an empty type, and field_name assignment is an overloaded operator that returns a different type. Without making it const-qualified it cannot be called on template arguments.

Solution:

  • const-qualify field_name::operator=.

Problem:
- `field_name` is an empty type, and `field_name` assignment is an overloaded
  operator that returns a different type. Without making it `const`-qualified it
  cannot be called on template arguments.

Solution:
- `const`-qualify `field_name::operator=`.
@elbeno elbeno enabled auto-merge May 7, 2025 17:05
@elbeno
Copy link
Contributor Author

elbeno commented May 7, 2025

@jvillavc this enables use of field_name values as template arguments.

@elbeno elbeno merged commit 198fff4 into intel:main May 7, 2025
27 checks passed
@elbeno elbeno deleted the field-name-assignment branch May 7, 2025 17:46
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