diff options
author | donb <donb@gcc20.fsffrance.org> | 2012-01-14 04:02:15 (GMT) |
---|---|---|
committer | donb <donb@gcc20.fsffrance.org> | 2012-01-14 04:02:15 (GMT) |
commit | 65a1c9cf6c8f1c69a6f9fbdc09faeb15b3dc6e4a (patch) | |
tree | e2542e3fa46d6e9faeacda39c03a84ac83272222 /src/parser.y | |
parent | 10701f71581bd4053ab328254d6abacd6956b498 (diff) |
add boosty.h for compatability with boost <1.44
Diffstat (limited to 'src/parser.y')
-rw-r--r-- | src/parser.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y index 1c4a784..7e27bfe 100644 --- a/src/parser.y +++ b/src/parser.y @@ -44,6 +44,7 @@ #include <boost/filesystem.hpp> using namespace boost::filesystem; +#include "boosty.h" int parser_error_pos = -1; @@ -641,7 +642,8 @@ Module *Module::compile_library(const std::string &filename) libs_cache[filename] = e; Module *backup_mod = module; - Module *lib_mod = dynamic_cast<Module*>(parse(text.str().c_str(), path(filename).parent_path().generic_string().c_str(), 0)); + std::string pathname = boosty::stringy( fs::path(filename).parent_path() ); + Module *lib_mod = dynamic_cast<Module*>(parse(text.str().c_str(), pathname.c_str(), 0)); module = backup_mod; if (lib_mod) { |