|
|
|
|
|
by foxhill
912 days ago
|
|
apologies, perhaps i’m missing something here, having not used cap’n proto in any context at all before. is it not possible to delete the rvalue reference overload of ‘getList’? as far as i can tell, the error producing code wouldn’t have produced a diagnostic, but failed
to build in the first instance, like the rust case? |
|
Someone else mentioned using lifetimebound annotations. This will probably work a lot better, avoiding the false positives. It just hadn't been done because the annotations didn't exist at the time that most of Cap'n Proto was originally written.