BOOST Library: Getting file path from directory iterator

Hello, my name is Marcus, and I'm trying to get a game server to work in C++. The trouble is, it->leaf() is not there in most recent boost library. I'm trying to get file path from this code:
1
2
boost::filesystem::directory_iterator it(dir) 
// dir is a string, specified in my cpp file 


Help is appreciated:)
Topic archived. No new replies allowed.