提交 8430c8d7 编写于 作者: T tangwei12

remove boost filesystem

上级 6d53dcee
......@@ -18,9 +18,6 @@ limitations under the License. */
#include <numeric>
#include <sstream>
#include <string>
#include <boost/filesystem.hpp>
#include "paddle/fluid/framework/data_type.h"
#include "paddle/fluid/framework/data_type_transform.h"
#include "paddle/fluid/framework/framework.pb.h"
......@@ -42,9 +39,10 @@ static bool FileExists(const std::string &filepath) {
}
static std::string GenePath(const std::string &dir, const std::string &file) {
boost::filesystem::path dir(dir);
boost::filesystem::path file(file);
boost::filesystem::path full_path = dir / file;
std::string file_path;
file_path.append(file_path);
file_path.append("/");
file_path.append(file);
return full_path;
}
......
......@@ -18,9 +18,6 @@ limitations under the License. */
#include <numeric>
#include <sstream>
#include <string>
#include <boost/filesystem.hpp>
#include "paddle/fluid/framework/data_type.h"
#include "paddle/fluid/framework/data_type_transform.h"
#include "paddle/fluid/framework/framework.pb.h"
......@@ -37,9 +34,10 @@ const char SUCCESS[] = "_SUCCESS";
const char SERIAL_VAR[] = "SERIAL_NUMBER";
static std::string GenePath(const std::string &dir, const std::string &file) {
boost::filesystem::path dir(dir);
boost::filesystem::path file(file);
boost::filesystem::path full_path = dir / file;
std::string file_path;
file_path.append(file_path);
file_path.append("/");
file_path.append(file);
return full_path;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册