aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/safe_ofstream.cc
AgeCommit message (Collapse)AuthorLines
2016-08-06modernize: use default method synthesisAvatar Saleem Abdulrasool -3/+1
Convert a number of destructors to default synthesized functions. Try to inline a few instances into the header. It should be possible to inline all of them, however, gcc seems to emit a number of warnings. Furthermore, some of the destructors are pure-virtualed, but provide an implementation. Placing the definition into the header causes ODR violations.
2015-08-21throw() -> noexceptAvatar Wouter van Kesteren -1/+1
Change-Id: I461abfda8b7297c1bd04f1090f8d58fa96364616 Reviewed-on: https://galileo.mailstation.de/gerrit/1892 Reviewed-by: Saleem Abdulrasool <compnerd@compnerd.org> Reviewed-by: Kylie McClain <somasis@exherbo.org>
2013-12-15build: assume full C++11 supportAvatar Saleem Abdulrasool -1/+1
paludis requires C++11 support. Remove checks and compatibility code to permit building with partial C++11 support. This mostly removes the configure checks for support for C++11 features. noexcept and std::next (part of the C++11 standard library) had compatibility code which is no longer exercised and should be safe to excise. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
2013-05-03Mark ~SafeOFStream() as noexcept(false)Avatar Wouter van Kesteren -1/+1
2013-05-03Use StreamHolderAvatar Wouter van Kesteren -2/+2
2011-08-07Move explicit instantiations to namespace paludisAvatar Elias Pipping -2/+4
Makes clang++ happy
2011-01-09Rework Pimp to avoid ImpPtr ickinessAvatar Ciaran McCreesh -2/+2
Fixes: ticket:1070
2010-12-10Do our own buffering for SafeOFStreamAvatar Ciaran McCreesh -12/+67
2010-08-24FSEntry -> FSPath, FSStatAvatar Ciaran McCreesh -10/+10
Fixes: ticket:967
2010-01-07O_CLOEXEC on filesAvatar Ciaran McCreesh -2/+2
2009-02-09Avoid std::ifstream and std::ofstream.Avatar Ciaran McCreesh -0/+103
Unfortunately std::ifstream and std::ofstream are allowed to fail in unobvious ways when given a duff file. In particular, gcc won't error out when a std::ifstream is created for a directory until the first read occurs. So we write our own stream buffer classes that do error checking and throw useful exceptions on error, and use those instead.