PR libstdc++/59253 Improve pretty printers for smart pointers
[gcc.git] / libstdc++-v3 / ChangeLog
1 2018-01-09 Jonathan Wakely <jwakely@redhat.com>
2
3 PR libstdc++/59253 (partial)
4 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
5 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
6 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
7 children.
8 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
9 of unique_ptr printer.
10 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
11 output of shared_ptr printer.
12
13 2018-01-05 Jonathan Wakely <jwakely@redhat.com>
14
15 PR libstdc++/83626
16 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
17 unnecessary symlink_status call.
18 (remove_all(const path&, error_code&)): Use filesystem::remove.
19 * src/filesystem/std-ops.cc: Likewise.
20
21 PR libstdc++/83279
22 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
23 sendfile.
24
25 PR libstdc++/83626
26 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
27 report an error for ENOENT.
28 (remove_all(const path&)): Fix type of result variable.
29 (remove_all(const path&, error_code&)): Use non-throwing increment
30 for directory iterator. Call POSIX remove directly to avoid redundant
31 calls to symlink_status. Do not report errors for ENOENT.
32 * src/filesystem/std-ops.cc: Likewise.
33 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
34 overload.
35 * testsuite/experimental/filesystem/operations/remove_all.cc:
36 Likewise.
37
38 2018-01-04 Jonathan Wakely <jwakely@redhat.com>
39
40 PR libstdc++/83626
41 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
42 redundant call to ec.clear().
43 (remove_all(const path&, error_code&))): Do not return an error for
44 non-existent paths.
45 * src/filesystem/std-ops.cc: Likewise.
46 * testsuite/27_io/filesystem/operations/remove.cc: New test.
47 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
48 results for non-existent paths.
49 * testsuite/experimental/filesystem/operations/remove.cc: New test.
50 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
51 expected results for non-existent paths.
52
53 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
54 check status_known once.
55 * include/experimental/bits/fs_ops.h: Likewise.
56
57 PR libstdc++/83607
58 * include/std/functional (__is_byte_like): New trait.
59 (__is_std_equal_to): Remove.
60 (__boyer_moore_base_t): Use __is_byte_like instead of
61 __is_std_equal_to.
62 * include/experimental/functional (__is_std_equal_to): Remove.
63 (__boyer_moore_base_t): Use __is_byte_like instead of
64 __is_std_equal_to.
65 * testsuite/20_util/function_objects/83607.cc: New test.
66
67 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
68
69 Protect optional's deduction guide with the feature macro
70 * include/std/optional: Use the feature macro.
71
72 2018-01-03 Jakub Jelinek <jakub@redhat.com>
73
74 Update copyright years.
75 \f
76 Copyright (C) 2018 Free Software Foundation, Inc.
77
78 Copying and distribution of this file, with or without modification,
79 are permitted in any medium without royalty provided the copyright
80 notice and this notice are preserved.