Adrian Taylor

Results 215 comments of Adrian Taylor

> Oh, I was wrong and abstract type can have a non-default constructor, but it’ll fail at link time. Weird. Could you raise a pull request with a test case...

Sorry for the conflicts here. Changes to our dependencies are expensive for some of our customers to absorb (where they're using non-cargo build systems) so I needed to make a...

Manual example, requiring C++ addition. https://github.com/google/autocxx/compare/create-vec in case I decide that we can't make this easier...

Yeah, per this bug they're just opaque from Rust. The workaround is to define new C++ functions like this, to let you unpack the error. ```cpp bool IsAnError(ErrorOr) { //...

Oh, I see. Unfortunately that's currently not possible. But, I just raised #1009 as a future enhancement to make that possible. I'll try to look into it sometime in the...

Related: https://github.com/dtolnay/cxx/issues/936. (The reason cxx would not want this, but we might, is explained well in https://github.com/dtolnay/cxx/issues/936#issuecomment-926875873)

It looks like I meant the test case added in #309.

Thanks for the report, and thanks very much for taking the time to come up with a minimal code example. It's very much appreciated. There is a reasonable chance that...

Thank you for these. Very interesting. My previous "plan" was: * Genuine accessor methods in C++. * Relying on the existence of [cross-language LTO](https://blog.llvm.org/2019/09/closing-gap-cross-language-lto-between.html) to make performance theoretically unaffected —...

WIP here: https://github.com/google/autocxx/compare/unsafe_ffi It isn't any good right now because the `macro_rules!` wrapper can't cope with `unsafe` being optional. I need to work on that.