File tree Expand file tree Collapse file tree 3 files changed +0
-19
lines changed
tests/std/tests/P0218R1_filesystem Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -2175,12 +2175,6 @@ namespace filesystem {
2175
2175
}
2176
2176
}
2177
2177
2178
- #if _HAS_CXX20
2179
- void clear_cache() noexcept {
2180
- _Cached_data._Available = __std_fs_stats_flags::_None;
2181
- }
2182
- #endif // _HAS_CXX20
2183
-
2184
2178
private:
2185
2179
_NODISCARD bool _Has_cached_attribute(const __std_fs_file_attr _Attrs) const noexcept {
2186
2180
return _Bitmask_includes(_Cached_data._Attributes, _Attrs);
Original file line number Diff line number Diff line change 273
273
// P2415R2 What Is A view?
274
274
// P2418R2 Add Support For std::generator-like Types To std::format
275
275
// P2432R1 Fix istream_view
276
- // P????R? directory_entry::clear_cache()
277
276
278
277
// _HAS_CXX20 indirectly controls:
279
278
// P0619R4 Removing C++17-Deprecated Features
Original file line number Diff line number Diff line change @@ -1200,18 +1200,6 @@ void test_directory_entry() {
1200
1200
EXPECT (good (ec));
1201
1201
EXPECT (cachingEntry.is_regular_file (ec));
1202
1202
EXPECT (good (ec));
1203
- #if _HAS_CXX20
1204
- // break caching again, and assert that things aren't cached
1205
- cachingEntry.clear_cache ();
1206
- EXPECT (cachingEntry.file_size (ec) == static_cast <uintmax_t >(-1 ));
1207
- EXPECT (bad (ec));
1208
- EXPECT (cachingEntry.last_write_time (ec) == file_time_type::min ());
1209
- EXPECT (bad (ec));
1210
- EXPECT (cachingEntry.hard_link_count (ec) == static_cast <uintmax_t >(-1 ));
1211
- EXPECT (bad (ec));
1212
- EXPECT (!cachingEntry.is_regular_file (ec));
1213
- EXPECT (bad (ec));
1214
- #endif // _HAS_CXX20
1215
1203
1216
1204
// assert that mutating the path doesn't fail even though the target doesn't exist
1217
1205
for (auto && nonexistent : nonexistentPaths) {
You can’t perform that action at this time.
0 commit comments