r240587 - in /trunk/libstdc++-v3: ChangeLog inc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Wed Sep 28 18:02:00 GMT 2016
Author: redi
Date: Wed Sep 28 18:02:25 2016
New Revision: 240587
URL: https://gcc.gnu.org/viewcvs?rev=240587&root=gcc&view=rev
Log:
Check for overflow in filesystem::last_write_time
* include/experimental/bits/fs_fwd.h (file_time_type): Simplify
definition.
* src/filesystem/ops.cc (file_time): Take error_code parameter and
check for overflow.
(do_copy_file, last_write_time): Pass error_code in file_time calls.
* testsuite/experimental/filesystem/operations/last_write_time.cc:
New.
* testsuite/util/testsuite_fs.h (scoped_file): Define RAII helper.
Added:
trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/last_write_time.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/experimental/bits/fs_fwd.h
trunk/libstdc++-v3/src/filesystem/ops.cc
trunk/libstdc++-v3/testsuite/util/testsuite_fs.h
More information about the Libstdc++-cvs
mailing list