-
Notifications
You must be signed in to change notification settings - Fork 20
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
Removed usage of Windows.h #7
Removed usage of Windows.h #7
Conversation
I will try to move the changes to boostorg/winapi, and as soon as this is accepted rework this pull request to make more use of this. |
Thanks for your patch! I agree with you that boostorg/winapi is a better place though. Current and future Boost.Process maintainers can then concentrate on process management only (which is complicated enough :) without having to dive into additional details of the Windows API. |
This is because of the current attempt to pull the winapi stuff into the boost/winapi repo. Here's the [pull request](boostorg/winapi#16)
Currently the pull request is pending. If that is accepted we could pull - that might however need to be on the develop branch, since we need the develop branch of develop |
Ok, it's officially broken, I'll work on that, and tell you as soon as fixed. |
Sounds good! - Do I understand correctly that you recommend us creating a develop branch? |
@BorisSchaeling Currently, windows provides two versions for the functions, which may either take wchar_t or char_t. Now I changed boost::filesystem::path to be converted to wchar_t by default, because wchar_t is the default representation on windows. Since the executor also uses the wchar_t types currently (aea7337) , the tests fail. I would propose the following: Make executor into a template, and defined typedefs in the following way: template<typename CharType> struct basic_executor;
typedef basic_executor<char> executor;
typedef basic_executor<wchar_t> wexecutor; The other variant would be to just make everything use wchar_t and just convert everything into wchar_t. Edit: I forgot to mention: I changed the underlying classes to be available if they are available on the platorm. From what I can tell, the I would then also look for the parameters in execute, whether one of them needs wchar_t, and thereby select if it'll use executor or wexecutor. If this double implementation is not needed, I think I'd use the |
Well, I am just saying: until the winapi changes go into the master branch will take a while. It would be strange to have process/master dependent on winapi/develop. But that's not relevant for travis, since it only builds the linux version. |
Ok, this branch could actually be merged, if the user considers, that |
Add a Gitter chat badge to README.md
I would consider this PR obsolete since the development of the new version of boost.process seems to lead somewhere |
So I want to use the library and bloody hate the win-api, hence i removed the usage of it and build in substitutes.
The thing compiles with MSVC 2015 and Mingw 5.1 but not all tests pass. The problem here is, that I do not know the library well enough to debug this. Additionally, I'd need to know if you'd be even interested in this change, since I'd guess we'd also have to provide tests for the winapi-stuff or may have more work to comply to the boost conventions.
So if you've got the time, I'd be really glad if you could look over the code.
Hopefuly this closes #4.