Skip to content

Commit

Permalink
Add info on difference between function pointer imports and function …
Browse files Browse the repository at this point in the history
…type imports to the FAQ section (fixes #49)
  • Loading branch information
apolukhin committed Aug 20, 2020
1 parent 6b2e3c7 commit 7e6453f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/faq.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ But there's no guarantee that `filesystem::temp_directory_path()` will actually

[pre
]

* [*Question:] Can I use function pointer type (like `void(*)()`) instead of function type (like `void()`) to import function?
* [*Answer:] No you can't because the meaning of importing a function pointer is different:
* `lib.get<void()>("func")` imports a function `void func()`
* `lib.get<void(*)()>("func_var")` imports a variable that stores a pointer to the function `auto func_var = &func`

[pre
]

* [*Question:] I have found a bug, how do I notify?
* [*Answer:] Create an [@https://github.com/apolukhin/Boost.DLL/issues issue at GitHub] with a detailed description.
Expand Down

0 comments on commit 7e6453f

Please sign in to comment.