Opened 6 years ago

Closed 18 months ago

#6557 closed Bugs (fixed)

directory_iterator_increment fails to throw exception

Reported by: anonymous Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc:


When trying to construct a directory_iterator from a location that doesn't exist anymore, no exception is thrown.

This code in directory_iterator_increment fails:

if (temp_ec)


it.m_imp.reset(); if (ec == 0)



it.m_imp->dir_entry.path().parent_path(), error_code(BOOST_ERRNO, system_category())));

ec->assign(BOOST_ERRNO, system_category()); return;


it.m_imp is first reset and then used while trying to throw an exception.

Attachments (0)

Change History (2)

comment:2 Changed 18 months ago by Beman Dawes

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Beman Dawes.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.