Skip to content

Commit 8078ad6

Browse files
remysucreemilio
authored andcommitted
Fix regex to be marked opaque
While `std::*` makes informal sense, the user may be mislead into calling `opaque_type("std::*")` instead of the correct `opaque_type("std::.*")` (as I was).
1 parent 16189e4 commit 8078ad6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/src/cpp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ force C++ mode. You probably also want to use `-std=c++14` or similar clang args
1212
as well.
1313

1414
You pretty much **must** use [whitelisting](./whitelisting.md) when working
15-
with C++ to avoid pulling in all of the `std::*` types, many of which `bindgen`
15+
with C++ to avoid pulling in all of the `std::.*` types, many of which `bindgen`
1616
cannot handle. Additionally, you may want to mark other types as
1717
[opaque](./opaque.md) that `bindgen` stumbles on. It is recommended to mark
18-
all of `std::*` opaque, and to whitelist only precisely the functions and types
18+
all of `std::.*` opaque, and to whitelist only precisely the functions and types
1919
you intend to use.
2020

2121
You should read up on the [FAQs](./faq.md) as well.

0 commit comments

Comments
 (0)