Hello Dariqq
You encounteren the same problem with me when I tried to build guix-daemon with
-std=c++11 [1].
With your patch guix-daemon can be built with -std=c++17 successflly, but with
a warning.
nix/libutil/util.cc: In function 'void nix::writeToStderr(const string&)':
nix/libutil/util.cc:639:19: warning: 'bool std::uncaught_exception()' is
deprecated: use 'std::uncaught_exceptions()' instead [-Wdeprecated-declarations]
639 | if (!std::uncaught_exception()) throw;
| ^~~~~~~~~~~~~~~~~~
More information about this warning can be found at [2].
Thanks for yout patch.
Regards,
Kuo
[1]: https://codeberg.org/civodul/guix/pulls/31
[2]:
https://stackoverflow.com/questions/27741423/why-will-stduncaught-exception-change-to-stduncaught-exceptions