-
Notifications
You must be signed in to change notification settings - Fork 29
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
Splitting the ews.hpp into multiple smaller files #95
Comments
A dream comes true. ;) |
I see. Well, I don't mind changes.
But I think when a split-up is done right these downsides can be neglected. |
There are multiple possibilities
Did I miss something? Any suggestions? Preferences? |
I took a shot at it but it really isn't as easy as i hoped it would be. I successfully moved all enums and most enum related functions to ews_enum.hpp. I had to move the definition of the exception class to another file too, since it's constructor is used in some of the related functions. From what I've seen, splitting into categories is prone to cause circular dependencies. What do you think about ews_enum.hpp? Is that something worth creating a PR for? Or just leave it as is? Or look for another way? |
We would like to use ews-cpp in our project and splitting seems a nice idea. Would you accept a PR if we try to do it ourselves? |
@obatysh Sounds great! As you can see, the others considered various ideas for splitting the ews.hpp. Just give it a try. If you have a PR, I would be glad to review it. Moving the enums to a separate file, as Sebastian tried once, seems to me as a good first approach. But if you have other ideas, just let us know, so that we can provide feedback. |
My VS2017 is begging me to have smaller portions of code per file.
It takes up to 30 seconds to re-parse the code after changes (to update highlighting and provide other features like the renaming).
I never worked on a header only library so I'm not sure about the possible downsides.
But shouldn't it be easy to add more hpp files which are included in the ews.hpp just like the ews_fwd.hpp?
The text was updated successfully, but these errors were encountered: