summarylogtreecommitdiffstats
path: root/boost.patch
blob: d12a5f394ea38e3ae7bce849845842e5cf99d810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From c60336895b398f2557adf146c3b4a8a03a541e27 Mon Sep 17 00:00:00 2001
From: maksis <maksis@adrenaline-network.com>
Date: Sat, 2 Feb 2019 05:52:03 +0200
Subject: [PATCH] Fix compiling with Boost 1.69

https://github.com/airdcpp-web/airdcpp-webclient/issues/308
---
 airdcpp/airdcpp/Client.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airdcpp/airdcpp/Client.cpp b/airdcpp/airdcpp/Client.cpp
index 997d9dcde..1412ae9d0 100644
--- a/airdcpp/airdcpp/Client.cpp
+++ b/airdcpp/airdcpp/Client.cpp
@@ -143,7 +143,7 @@ void Client::reloadSettings(bool aUpdateNick) noexcept {
 }
 
 bool Client::changeBoolHubSetting(HubSettings::HubBoolSetting aSetting) noexcept {
-	auto newValue = !get(aSetting);
+	auto newValue = static_cast<bool>(!get(aSetting));
 	get(aSetting) = newValue;
 
 	//save for a favorite hub if needed