Skip to content

Instantly share code, notes, and snippets.

@Santarh
Created June 8, 2012 08:11
Show Gist options
  • Save Santarh/2894415 to your computer and use it in GitHub Desktop.
Save Santarh/2894415 to your computer and use it in GitHub Desktop.
boost::filesystem::path
#include <iostream>
#include <boost/algorithm/string.hpp>
// Boost1.49.0
#include <boost/filesystem.hpp>
int main()
{
boost::filesystem::path p( "/hoge/fuga.foo" );
std::cout << p.filename() << std::endl; // EXC_BAD_ACCESS
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment