Skip to content

Comments

Fixed a bug in typename dropping references and improving node events.#12

Merged
GhostofCookie merged 2 commits intomainfrom
fix_typename-and-node-events
Feb 26, 2025
Merged

Fixed a bug in typename dropping references and improving node events.#12
GhostofCookie merged 2 commits intomainfrom
fix_typename-and-node-events

Conversation

@GhostofCookie
Copy link
Contributor

Improved Node events by passing the NodeData as a reference to the event instead of forcing events to lookup the data in the event callback. Also fixed TypeName removing reference and const qualifiers from given types. If that behaviour is desired, then TypeName can be called with std::decay_t:

TypeName<int&>::value; // should output "int&"
TypeName<const int&>::value; // should output "const int&"
TypeName<std::decay_t<const int&>>::value; // should output "int"

@GhostofCookie GhostofCookie merged commit 6ed0fc0 into main Feb 26, 2025
4 checks passed
@GhostofCookie GhostofCookie deleted the fix_typename-and-node-events branch February 26, 2025 15:55
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.

1 participant