Skip to content

Commit

Permalink
fix: boost 1.85/1.86 (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarwcl authored Jan 9, 2025
1 parent 618affd commit 8c84357
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
8 changes: 7 additions & 1 deletion src/accelerator/ogl/util/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,13 @@ struct device::impl : public std::enable_shared_from_this<impl>

auto task = task_type(std::forward<Func>(func));
auto future = task.get_future();
boost::asio::spawn(service_, std::move(task));
boost::asio::spawn(service_, std::move(task)
#if BOOST_VERSION >= 108000
, [](std::exception_ptr e) {
if (e) std::rethrow_exception(e);
}
#endif
);
return future;
}

Expand Down
2 changes: 1 addition & 1 deletion src/common/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void configure(const std::wstring& filename)
}

ftemplate =
clean_path(boost::filesystem::complete(paths.get(L"template-path", initial + L"/template/")).wstring());
clean_path(boost::filesystem::absolute(paths.get(L"template-path", initial + L"/template/")).wstring());
data = clean_path(paths.get(L"data-path", initial + L"/data/"));
} catch (...) {
CASPAR_LOG(error) << L" ### Invalid configuration file. ###";
Expand Down
2 changes: 1 addition & 1 deletion src/common/os/linux/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ std::optional<std::wstring> find_case_insensitive(const std::wstring& case_insen
bool found = false;

for (auto it = directory_iterator(absolute(result)); it != directory_iterator(); ++it) {
auto leaf = it->path().leaf();
auto leaf = it->path().filename();

if (boost::algorithm::iequals(part.wstring(), leaf.wstring(), loc)) {
result = result / leaf;
Expand Down
1 change: 0 additions & 1 deletion src/common/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/exception/all.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/ffmpeg/consumer/ffmpeg_consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ struct ffmpeg_consumer : public core::frame_consumer

static boost::regex prot_exp("^.+:.*");
if (!boost::regex_match(path_, prot_exp)) {
if (!full_path.is_complete()) {
if (!full_path.is_absolute()) {
full_path = u8(env::media_folder()) + path_;
}

Expand Down

0 comments on commit 8c84357

Please sign in to comment.