Boost logo

Boost Users :

From: Christian Gmeiner (yg-boost-users_at_[hidden])
Date: 2003-07-19 13:11:46


Hello!

This is my problem:

I have an std::string contains something like C:\Test\Media\Cloud.dds.
Now i want to extract the Cloud.dds.

This is, what i have tried:
fs::path temp(Name, fs::native);
fs::directory_iterator dir_itr(temp);
Name = dir_itr->leaf();

Where is my error? This code throughs an exception.

Thanks,
Christian Gmeiner


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net