-
Notifications
You must be signed in to change notification settings - Fork 17
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
Documentation on when/why/how to write _impl.hpp
#12
Comments
MotivationsHeader-only libraries are often easier to include in a project than external dependencies because they get compiled together with the project using them and they can just get bundled together with the project source files in a This will make sure they get compiled with the same compiler flags as you use for your project and you don't need to build a new dependency package for every new architecture/operating system combination you support. C++ libraries heavily using templates make a good candidate for a header-only library because templates are often implemented completely in a header. This is true as long as the header-only library does not have a dependency by itself. Making header-only optional,
|
@springmeyer feel free to edit/add. Let me know if there is any other aspect of the |
@tmpsantos this looks fantastic, thank you 🙏 |
@tmpsantos thanks for working on mapbox/geojson-cpp#24. Now I'd like your help in documenting your work so others can do this again for further projects. Can you write up a quick guide on how you accomplished this, key terms, and why you chose
_impl.hpp
as an extention (let's standardize on that). Drop your notes into this ticket as a comment please and then we'll integrate into the main readme./cc @mapsam @GretaCB
refs mapbox/hpp-skel#3
The text was updated successfully, but these errors were encountered: