From a518b2febb266f6f70cdfc0421bd77b9f0dd89be Mon Sep 17 00:00:00 2001 From: Kasper van den Berg Date: Tue, 10 Dec 2013 12:08:36 +0100 Subject: [PATCH] Use dir_entry.path().filename() - Replace directory_entry.leaf() with directory_entry.path().filename(); this allows compiling with Boost >= 1.49. --- tests/test_WEBagents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_WEBagents.cpp b/tests/test_WEBagents.cpp index 56f9cf1..fe4de9b 100644 --- a/tests/test_WEBagents.cpp +++ b/tests/test_WEBagents.cpp @@ -113,7 +113,7 @@ class MyHandler : public w3c_sw::webserver::request_handler { for ( boost::filesystem::directory_iterator itr( doc_root_ + request_path ); itr != end_itr; ++itr ) { - std::string name = itr->leaf(); + std::string name = itr->path().filename().native(); if (boost::filesystem::is_directory(itr->status())) name += "/"; s << "
  • " << name << "
  • \n";