/
srv
/
osrm
/
osrm-backend
/
unit_tests
/
common
/
/srv/osrm/osrm-backend/unit_tests/common
mkdir
upload
Name
Size
Mode
Actions
range_tools.hpp
1470
0644
edit
dl
rm
temporary_file.hpp
394
0644
edit
dl
rm
Edit:
/srv/osrm/osrm-backend/unit_tests/common/temporary_file.hpp
(394B)
#ifndef UNIT_TESTS_TEMPORARY_FILE_HPP #define UNIT_TESTS_TEMPORARY_FILE_HPP #include <boost/filesystem.hpp> struct TemporaryFile { TemporaryFile() : path(boost::filesystem::unique_path()) {} TemporaryFile(const std::string &path) : path(path) {} ~TemporaryFile() { boost::filesystem::remove(path); } boost::filesystem::path path; }; #endif // UNIT_TESTS_TEMPORARY_FILE_HPP
Save
cmd:
run