MCPcopy Create free account
hub / github.com/boostorg/filesystem / error

Function error

src/operations.cpp:253–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 const error_code ok;
252
253 bool error(bool was_error, error_code* ec, const string& message)
254 {
255 if (!was_error)
256 {
257 if (ec != 0) ec->clear();
258 }
259 else
260 { // error
261 if (ec == 0)
262 BOOST_FILESYSTEM_THROW(filesystem_error(message,
263 error_code(BOOST_ERRNO, system_category())));
264 else
265 ec->assign(BOOST_ERRNO, system_category());
266 }
267 return was_error;
268 }
269
270 bool error(bool was_error, const path& p, error_code* ec, const string& message)
271 {

Callers 15

remove_file_or_directoryFunction · 0.85
copy_directoryFunction · 0.85
copy_fileFunction · 0.85
copy_symlinkFunction · 0.85
create_directory_symlinkFunction · 0.85
create_hard_linkFunction · 0.85
create_symlinkFunction · 0.85
current_pathFunction · 0.85
equivalentFunction · 0.85
uintmax_t file_sizeMethod · 0.85
is_emptyFunction · 0.85

Calls 1

filesystem_errorFunction · 0.85

Tested by

no test coverage detected