Comments (3)
It depends on what type of class TextRun
is. It is possible that autocxx is unable to generate this for virtual or templated classes. I don't know the exact restrictions, but you might want to write a simple wrapper for TextRun
instead.
from autocxx.
Thanks for your advice @BabaBert . I'll try that approach when possible.
If I have success I'll update this bug and close.
from autocxx.
Hey @johnoneil, my initial response wasn't quite correct. Your C++ type needs ta Move Constructor. Otherwise, autocxx
can't safely implement VectorElement
for you as described here: #1170.
If you can't do that, then a simple wrapper may suffice.
If you ignore this, you will most likely get a segfault
down the line.
from autocxx.
Related Issues (20)
- Unable to generate bindings for std::array<unsigned char, 6> HOT 1
- Question: How to "export" (i.e. make `pub`) modules generated by `generate_ns!()`? HOT 1
- Usage of system frameworks (macOS)? HOT 3
- cannot bind rvalue reference of type .. to lvalue of type .. / pointer argument requires that the function be marked unsafe
- Calling protected functions from a Rust subclass
- Generated Binding fails to compile due to due to `redefinition as different kind of symbol` Error HOT 1
- New method of POD-Types not creating a POD rust type
- Unable to find CXX header for C++ HOT 1
- Unable to Call Base Class Functions When Base is a Template Class in autocxx
- autocxx-bindgen upgrade suggestions
- Workarounds for Pointer to another pointer?
- Do all required include paths have to be included in Builder::new()
- Couldn’t generate binding for opencv cv::OutputArray HOT 1
- Compilation fails using char*
- unsupported type error on char typedef
- `generate_pod!` ignores/can't find `extern_cpp_type!` defined types
- Missing lifetime specifier on functions returning concrete templates HOT 1
- Generating Rust bindings which include a type named String doesn't compile
- Linker error with static method in class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autocxx.