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/import.cc | |
parent | 10701f71581bd4053ab328254d6abacd6956b498 (diff) |
add boosty.h for compatability with boost <1.44
Diffstat (limited to 'src/import.cc')
-rw-r--r-- | src/import.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/import.cc b/src/import.cc index 435d06d..e90965e 100644 --- a/src/import.cc +++ b/src/import.cc @@ -50,6 +50,7 @@ using namespace boost::filesystem; #include <boost/assign/std/vector.hpp> using namespace boost::assign; // bring 'operator+=()' into scope +#include "boosty.h" class ImportModule : public AbstractModule { @@ -81,7 +82,8 @@ AbstractNode *ImportModule::evaluate(const Context *ctx, const ModuleInstantiati std::string filename = c.getAbsolutePath(v.text); import_type_e actualtype = this->type; if (actualtype == TYPE_UNKNOWN) { - std::string ext = boost::algorithm::to_lower_copy(path(filename).extension().string()); + std::string extraw = boosty::extension_str( path(filename) ); + std::string ext = boost::algorithm::to_lower_copy( extraw ); if (ext == ".stl") actualtype = TYPE_STL; else if (ext == ".off") actualtype = TYPE_OFF; else if (ext == ".dxf") actualtype = TYPE_DXF; |