Skip to content

Fix shape_operator duplicate symbol error. - #90

Open
mheistermann wants to merge 1 commit into
avaxman:masterfrom
mheistermann:dev/fix-duplicate-symbol-shape_operator
Open

Fix shape_operator duplicate symbol error.#90
mheistermann wants to merge 1 commit into
avaxman:masterfrom
mheistermann:dev/fix-duplicate-symbol-shape_operator

Conversation

@mheistermann

Copy link
Copy Markdown
Contributor

If a client project included shape_operator.h in multiple TUs, they would get a "duplicate symbol" linker error.

Mark shape_operator as inline to fix this, and change helper function to be inline instead of static for consistency and to avoid multiple compiled copies.

If a client project included `shape_operator.h` in multiple TUs,
they would get a "duplicate symbol" linker error.

Mark shape_operator as inline to fix this, and change helper function to
be inline instead of static for consistency and to avoid multiple
compiled copies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant