Closed
Description
Hello, this tripped me up today. I wonder if it's not too late to fix.
Aeron
's constructor has a parameter of type Context&
and moves from it, which is pretty surprising. This code compiles and crashes:
aeron::Context context;
aeron::Aeron aeron(context);
context.cncFileName();
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!
Metadata
Metadata
Assignees
Labels
No labels