Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2006-10-12 16:12:43

Bugs item #1576175, was opened at 2006-10-12 13:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: filesystem
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Beman Dawes (beman_dawes)
Summary: directory_iterator doesn't work with catch

Initial Comment:
Fedora Core 4, gcc version 4.0.2 20051125 (Red Hat
The next construction doesn't work (but it works if
directory_iterator is changed to some other iterator
or just counter):

path dir_path(dir_name);
directory_iterator end_itr;
try {
   for (directory_iterator itr(dir_name);
            itr!=end_itr; ++itr)
       try {
       catch (...) {
           cout<<"First catch"<<endl;
           throw 20;
catch (...) {
   cout<<"Second catch"<<endl;

Result: First catch
        and stucked program, "strace" shows:


You can respond by visiting:

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at