-
Notifications
You must be signed in to change notification settings - Fork 3
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
LEWGI Belfast: std::process
constructor should take a callback called by the destructor
#50
Comments
Sounds weird to me. Why not just write a small wrapper? what's the background? |
@eliaskosunen - are the LEWGI wiki notes up? The discussion is rooted in discussion of this part of the paper: 6.4 process destructor should not terminate |
LEWGI minutes are up. The issues I created are copied from the summary from the GitHub issue: https://wg21.link/p1750/github |
We can do that, but I would then template it. In which case why not just subclass std::process? I don't get it. The default behavior must be terminate, since (unlike std::jthread) we don't even know what's happening inside the subprocess. |
Would more examples that illustrate how the solutions are diverse help? It seems to me that this is largely motivated by jthread, which makes people consider a bit sensitive towards a terminate, even though it's terminating another process in our case. |
Note, that this direction has not been approved by SG1, which is still undecided on the matter.
The text was updated successfully, but these errors were encountered: