Skip to content

How not to expose classes from indirectly included files? #183

Answered by lyskov
jwuttke asked this question in Q&A
Discussion options

You must be logged in to vote

Hm... not exactly, let me clarify Binder workflow a bit:

  • all-includes.hpp is file that should directly or indirectly provide provide definition to all types/functions that we want to expose in Python. It does not matter if files included directly or through other includes, there should not be any difference.
  • Binder uses config options to control what exactly should be bound and what should be skipped (types/functions that Binder think could not be bound will be skipped automatically). Only these config options influence set of bindings that will be generated. Please see https://cppbinder.readthedocs.io/en/latest/config.html for list of config options. Particularly +-namespace, +-class.

@…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jwuttke
Comment options

@lyskov
Comment options

Answer selected by jwuttke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants