File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -156,11 +156,23 @@ There are a few options documented when running `./bindgen --help`.
156
156
157
157
### C++
158
158
159
- This fork of rust-bindgen can handle a number of C++ features.
159
+ ` bindgen ` can handle most C++ features, but not all of them (C++ is hard!)
160
+
161
+ Notable C++ features that are unsupported or only partially supported:
162
+
163
+ * Partial template specialization
164
+ * Traits templates
165
+ * SFINAE
166
+ * Instantiating new template specializations
160
167
161
168
When passing in header files, the file will automatically be treated as C++ if
162
169
it ends in `` .hpp `` . If it doesn't, `` -x c++ `` can be used to force C++ mode.
163
170
171
+ You must use whitelisting when working with C++ to avoid pulling in all of the
172
+ ` std::* ` types, some of which ` bindgen ` cannot handle. Additionally, you may
173
+ want to blacklist other types that ` bindgen ` stumbles on, or make ` bindgen `
174
+ treat certain types as opaque.
175
+
164
176
### Annotations
165
177
166
178
The translation of classes, structs, enums, and typedefs can be adjusted using
You can’t perform that action at this time.
0 commit comments