adjacentlink / emane

Distributed wireless network emulation framework
Other
129 stars 37 forks source link

Use a forwarding reference #173

Closed bobmourlam closed 4 years ago

bobmourlam commented 4 years ago

Previously when I added the Args... parameter pack I was passing by value, but that doesn't work if one of the constructor params to the transport/mac layer takes a non-const reference.

I tested this with a changed here. I don't intend to pull request that change: https://github.com/bobmourlam/emane-embedded-example/blob/master/src/radiomodel.h#L54 https://github.com/bobmourlam/emane-embedded-example/blob/master/src/emane-embedded-example.cc#L161

sgalgano commented 4 years ago

Thanks for the update.