[Bug libstdc++/71415] std::filesystem::exists that does not throw sets error code if file does not exist

2016-06-06 Thread marejde at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71415 --- Comment #5 from Martin Ejdestig --- (In reply to Jonathan Wakely from comment #4) > A new issue should get added to > http://cplusplus.github.io/LWG/lwg-active.html Thank you.

[Bug libstdc++/71415] std::filesystem::exists that does not throw sets error code if file does not exist

2016-06-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71415 --- Comment #4 from Jonathan Wakely --- (In reply to Martin Ejdestig from comment #3) > Oh, OK. It seems odd to me that an error is signaled for something that > should be considered "normal operations" though. I agree. > Is there some way for

[Bug libstdc++/71415] std::filesystem::exists that does not throw sets error code if file does not exist

2016-06-06 Thread marejde at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71415 --- Comment #3 from Martin Ejdestig --- > The semantics of exists(const path&, error_code&) are precisely specified, > and > I think this behaviour is correct according to the specification. This > is also > consistent with Boost.Filesystem.

[Bug libstdc++/71415] std::filesystem::exists that does not throw sets error code if file does not exist

2016-06-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71415 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/71415] std::filesystem::exists that does not throw sets error code if file does not exist

2016-06-05 Thread marejde at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71415 --- Comment #1 from Martin Ejdestig --- Sorry, a copy paste error slipped in. Last print out should be: std::cout << "error_code operator bool: " << (error_code ? true : false) << '\n'; Output is still the same though.