You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think if the constructor is going to consume its parameter, I think the parameter should be of type Context or Context&& so that the above doesn't compile?
Let me know what you think!
The text was updated successfully, but these errors were encountered:
lukeocamden
changed the title
cpp_wrapper Aeron should not move-from its l-value constructor parameter
cpp_wrapper Aeron should not move-from its l-value reference constructor parameter
Jan 23, 2025
Hello, this tripped me up today. I wonder if it's not too late to fix.
Aeron
's constructor has a parameter of typeContext&
and moves from it, which is pretty surprising. This code compiles and crashes:I think if the constructor is going to consume its parameter, I think the parameter should be of type
Context
orContext&&
so that the above doesn't compile?Let me know what you think!
The text was updated successfully, but these errors were encountered: