While in practice a C++ ref and ptr will have the same ABI, since C doesn't have refs this gets flagged by -Wreturn-type-c-linkage. Note that this contrasts with the Rust side where C-ABI functions that take a pointer or ref are permitted and guaranteed to have the same ABI. PiperOrigin-RevId: 676875775pull/18450/head
parent
20eeda825a
commit
3abdf99eec
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue