Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change #include of FlexibleInput header and source file #3

Open
maxschalz opened this issue Jan 10, 2022 · 1 comment
Open

Change #include of FlexibleInput header and source file #3

maxschalz opened this issue Jan 10, 2022 · 1 comment
Assignees

Comments

@maxschalz
Copy link
Member

Change flexible_input.cc to flexible_input.tpp to clearly mark it as a template implementation. Then place #include "flexible_input.tpp" at the end of the header file and import said header file in, e.g., miso_enrich.h etc.

See https://stackoverflow.com/a/495056/15268739

@maxschalz maxschalz self-assigned this Jan 10, 2022
@maxschalz
Copy link
Member Author

maxschalz commented Jan 10, 2022

This will probably not work because the compiler will not find the correcft files. Another potential idea is to add the line template class FlexibleInput<double>; to the end of the source file, see here.

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

No branches or pull requests

1 participant