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

Use library as header only? #95

Open
correaa opened this issue Apr 23, 2020 · 2 comments
Open

Use library as header only? #95

correaa opened this issue Apr 23, 2020 · 2 comments

Comments

@correaa
Copy link

correaa commented Apr 23, 2020

Is it possible to use the library as header only for example by defining a macro?
Would it be in principle be possible? (e.g. by systematically moving code from the cpp files to the hpp files).

Is a header only version of the library being considered?

@anthonyaue
Copy link

This would definitely make the library easy to use. If the maintainers support it I'd be happy to take a crack.

@mattgruenke
Copy link

mattgruenke commented Sep 3, 2022

Build times for files simply including program_options.hpp are already quite long. The whole reason I'm browsing the issues is to see if anyone filed a bug or pull request to further optimize the build times of users. If not, I'll probably take a swing at it, which will include moving a few more of the unnecessary inlines to .cpp files.

If support is added for using it header-only, I just hope that it's done in a way that doesn't hurt build times for the rest of us.

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

3 participants