You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

840 lines
23 KiB

  1. From bbcf7fd0646d74b7f169b3aa4231d9150028ed0d Mon Sep 17 00:00:00 2001
  2. From: Rob Peters <info@domoticz.com>
  3. Date: Sun, 17 May 2020 11:46:37 +0200
  4. Subject: [PATCH] Avoid deprecated bind placeholders in global namespace
  5. ---
  6. hardware/ASyncSerial.cpp | 2 +-
  7. hardware/ASyncTCP.cpp | 4 +++-
  8. hardware/Comm5Serial.cpp | 2 ++
  9. hardware/CurrentCostMeterSerial.cpp | 4 +++-
  10. hardware/DavisLoggerSerial.cpp | 4 +++-
  11. hardware/DenkoviUSBDevices.cpp | 2 ++
  12. hardware/EnOceanESP2.cpp | 4 +++-
  13. hardware/EnOceanESP3.cpp | 4 +++-
  14. hardware/EvohomeRadio.cpp | 3 +++
  15. hardware/EvohomeSerial.cpp | 2 ++
  16. hardware/KMTronic433.cpp | 4 +++-
  17. hardware/KMTronicBase.cpp | 2 +-
  18. hardware/KMTronicSerial.cpp | 4 +++-
  19. hardware/MQTT.cpp | 2 ++
  20. hardware/Meteostick.cpp | 4 +++-
  21. hardware/MySensorsBase.cpp | 2 +-
  22. hardware/MySensorsSerial.cpp | 4 +++-
  23. hardware/OTGWBase.cpp | 2 +-
  24. hardware/OTGWSerial.cpp | 4 +++-
  25. hardware/OpenWebNetUSB.cpp | 3 ++-
  26. hardware/P1MeterSerial.cpp | 4 +++-
  27. hardware/Pinger.cpp | 2 ++
  28. hardware/RAVEn.cpp | 2 ++
  29. hardware/RFLinkSerial.cpp | 2 ++
  30. hardware/RFXComSerial.cpp | 4 +++-
  31. hardware/RFXComTCP.cpp | 2 --
  32. hardware/Rego6XXSerial.cpp | 4 +++-
  33. hardware/S0MeterBase.cpp | 2 +-
  34. hardware/S0MeterSerial.cpp | 4 +++-
  35. hardware/TCPProxy/tcpproxy_server.cpp | 2 ++
  36. hardware/TeleinfoSerial.cpp | 4 +++-
  37. hardware/USBtin.cpp | 4 +++-
  38. hardware/XiaomiGateway.cpp | 2 +-
  39. hardware/Yeelight.h | 1 -
  40. hardware/ZiBlueSerial.cpp | 2 ++
  41. hardware/plugins/PluginTransports.cpp | 2 ++
  42. main/WebServer.cpp | 4 +++-
  43. main/mainworker.cpp | 2 ++
  44. push/FibaroPush.cpp | 2 ++
  45. push/GooglePubSubPush.cpp | 2 ++
  46. push/HttpPush.cpp | 2 ++
  47. push/InfluxPush.cpp | 2 ++
  48. push/WebsocketPush.cpp | 2 ++
  49. tcpserver/TCPServer.cpp | 2 +-
  50. webserver/cWebem.cpp | 2 +-
  51. webserver/connection.cpp | 4 +++-
  52. webserver/connection_manager.cpp | 4 +++-
  53. webserver/proxyclient.cpp | 2 ++
  54. webserver/server.cpp | 4 +++-
  55. 49 files changed, 107 insertions(+), 32 deletions(-)
  56. diff --git a/hardware/ASyncSerial.cpp b/hardware/ASyncSerial.cpp
  57. index 2c9a5e27e9..36dd402fa7 100644
  58. --- a/hardware/ASyncSerial.cpp
  59. +++ b/hardware/ASyncSerial.cpp
  60. @@ -34,7 +34,7 @@
  61. #include <algorithm>
  62. #include <iostream>
  63. #include <boost/asio.hpp>
  64. -#include <boost/bind.hpp>
  65. +#include <boost/bind/bind.hpp>
  66. #include <boost/function.hpp>
  67. #include <boost/thread.hpp>
  68. #include <boost/smart_ptr/shared_array.hpp> // for shared_array
  69. diff --git a/hardware/ASyncTCP.cpp b/hardware/ASyncTCP.cpp
  70. index 8990c24300..7f7b1e0f24 100644
  71. --- a/hardware/ASyncTCP.cpp
  72. +++ b/hardware/ASyncTCP.cpp
  73. @@ -1,10 +1,12 @@
  74. #include "stdafx.h"
  75. #include "ASyncTCP.h"
  76. #include <boost/asio.hpp>
  77. -#include <boost/bind.hpp>
  78. +#include <boost/bind/bind.hpp>
  79. #include <boost/system/error_code.hpp> // for error_code
  80. #include "../main/Logger.h"
  81. +//using namespace boost::placeholders;
  82. +
  83. struct hostent;
  84. #ifndef WIN32
  85. diff --git a/hardware/Comm5Serial.cpp b/hardware/Comm5Serial.cpp
  86. index 9b44496fb5..f1c1f706d2 100644
  87. --- a/hardware/Comm5Serial.cpp
  88. +++ b/hardware/Comm5Serial.cpp
  89. @@ -5,6 +5,8 @@
  90. #include "../main/Logger.h"
  91. #include "../main/RFXtrx.h"
  92. +using namespace boost::placeholders;
  93. +
  94. /*
  95. This driver allows Domoticz to control any I/O module from the MA-4xxx Family
  96. diff --git a/hardware/CurrentCostMeterSerial.cpp b/hardware/CurrentCostMeterSerial.cpp
  97. index 05bac73d6a..bf9d35cab7 100644
  98. --- a/hardware/CurrentCostMeterSerial.cpp
  99. +++ b/hardware/CurrentCostMeterSerial.cpp
  100. @@ -10,10 +10,12 @@
  101. #include <string>
  102. #include <iostream>
  103. -#include <boost/bind.hpp>
  104. +#include <boost/bind/bind.hpp>
  105. #include <ctime>
  106. +using namespace boost::placeholders;
  107. +
  108. //
  109. //Class CurrentCostMeterSerial
  110. //
  111. diff --git a/hardware/DavisLoggerSerial.cpp b/hardware/DavisLoggerSerial.cpp
  112. index 9c44539beb..44c9dbde5c 100644
  113. --- a/hardware/DavisLoggerSerial.cpp
  114. +++ b/hardware/DavisLoggerSerial.cpp
  115. @@ -8,13 +8,15 @@
  116. #include <string>
  117. #include <algorithm>
  118. #include <iostream>
  119. -#include <boost/bind.hpp>
  120. +#include <boost/bind/bind.hpp>
  121. #include "../main/localtime_r.h"
  122. #include "../main/mainworker.h"
  123. #include <ctime>
  124. +using namespace boost::placeholders;
  125. +
  126. #ifdef _DEBUG
  127. //#define DEBUG_DAVIS
  128. #endif
  129. diff --git a/hardware/DenkoviUSBDevices.cpp b/hardware/DenkoviUSBDevices.cpp
  130. index a7977d82c8..53a27e5583 100644
  131. --- a/hardware/DenkoviUSBDevices.cpp
  132. +++ b/hardware/DenkoviUSBDevices.cpp
  133. @@ -5,6 +5,8 @@
  134. #include "../main/localtime_r.h"
  135. #include "../main/mainworker.h"
  136. +using namespace boost::placeholders;
  137. +
  138. #define MAX_POLL_INTERVAL 3600*1000
  139. #define DAE_IO_TYPE_RELAY 2
  140. diff --git a/hardware/EnOceanESP2.cpp b/hardware/EnOceanESP2.cpp
  141. index f20ff9c0cb..fd08c55f63 100644
  142. --- a/hardware/EnOceanESP2.cpp
  143. +++ b/hardware/EnOceanESP2.cpp
  144. @@ -8,7 +8,7 @@
  145. #include <string>
  146. #include <algorithm>
  147. #include <iostream>
  148. -#include <boost/bind.hpp>
  149. +#include <boost/bind/bind.hpp>
  150. #include "hardwaretypes.h"
  151. #include "../main/localtime_r.h"
  152. @@ -16,6 +16,8 @@
  153. #include <cmath>
  154. #include <ctime>
  155. +using namespace boost::placeholders;
  156. +
  157. #define ENOCEAN_RETRY_DELAY 30
  158. #define round(a) ( int ) ( a + .5 )
  159. diff --git a/hardware/EnOceanESP3.cpp b/hardware/EnOceanESP3.cpp
  160. index 6866eeb0d0..2afa0e1e36 100644
  161. --- a/hardware/EnOceanESP3.cpp
  162. +++ b/hardware/EnOceanESP3.cpp
  163. @@ -8,7 +8,7 @@
  164. #include <string>
  165. #include <algorithm>
  166. #include <iostream>
  167. -#include <boost/bind.hpp>
  168. +#include <boost/bind/bind.hpp>
  169. #include "hardwaretypes.h"
  170. #include "../main/localtime_r.h"
  171. @@ -16,6 +16,8 @@
  172. #include <cmath>
  173. #include <ctime>
  174. +using namespace boost::placeholders;
  175. +
  176. #if _DEBUG
  177. #define ENOCEAN_BUTTON_DEBUG
  178. #endif
  179. diff --git a/hardware/EvohomeRadio.cpp b/hardware/EvohomeRadio.cpp
  180. index 4da983538b..6ba97158cd 100644
  181. --- a/hardware/EvohomeRadio.cpp
  182. +++ b/hardware/EvohomeRadio.cpp
  183. @@ -23,6 +23,9 @@
  184. #include "../main/WebServer.h"
  185. #include "../webserver/cWebem.h"
  186. #include <json/json.h>
  187. +#include <boost/bind/bind.hpp>
  188. +
  189. +using namespace boost::placeholders;
  190. extern std::string szUserDataFolder;
  191. diff --git a/hardware/EvohomeSerial.cpp b/hardware/EvohomeSerial.cpp
  192. index 4a54988291..c74cf576cc 100644
  193. --- a/hardware/EvohomeSerial.cpp
  194. +++ b/hardware/EvohomeSerial.cpp
  195. @@ -7,6 +7,8 @@
  196. #include "../main/localtime_r.h"
  197. #include <boost/exception/diagnostic_information.hpp>
  198. +using namespace boost::placeholders;
  199. +
  200. CEvohomeSerial::CEvohomeSerial(const int ID, const std::string &szSerialPort, const int baudrate, const std::string &UserContID) :
  201. CEvohomeRadio(ID, UserContID)
  202. {
  203. diff --git a/hardware/KMTronic433.cpp b/hardware/KMTronic433.cpp
  204. index da81b20f9f..f9832a5a74 100644
  205. --- a/hardware/KMTronic433.cpp
  206. +++ b/hardware/KMTronic433.cpp
  207. @@ -9,11 +9,13 @@
  208. #include <string>
  209. #include <algorithm>
  210. #include <iostream>
  211. -#include <boost/bind.hpp>
  212. +#include <boost/bind/bind.hpp>
  213. #include <boost/exception/diagnostic_information.hpp>
  214. #include <ctime>
  215. +using namespace boost::placeholders;
  216. +
  217. //#define DEBUG_KMTronic
  218. #define RETRY_DELAY 30
  219. diff --git a/hardware/KMTronicBase.cpp b/hardware/KMTronicBase.cpp
  220. index b343108966..d9c45872b5 100644
  221. --- a/hardware/KMTronicBase.cpp
  222. +++ b/hardware/KMTronicBase.cpp
  223. @@ -10,7 +10,7 @@
  224. #include <sstream>
  225. #include <algorithm>
  226. #include <iostream>
  227. -#include <boost/bind.hpp>
  228. +#include <boost/bind/bind.hpp>
  229. #include <ctime>
  230. diff --git a/hardware/KMTronicSerial.cpp b/hardware/KMTronicSerial.cpp
  231. index 4e07f2c37a..6240f941bd 100644
  232. --- a/hardware/KMTronicSerial.cpp
  233. +++ b/hardware/KMTronicSerial.cpp
  234. @@ -10,12 +10,14 @@
  235. #include <string>
  236. #include <algorithm>
  237. #include <iostream>
  238. -#include <boost/bind.hpp>
  239. +#include <boost/bind/bind.hpp>
  240. #include <boost/exception/diagnostic_information.hpp>
  241. #include <ctime>
  242. //#define DEBUG_KMTronic
  243. +using namespace boost::placeholders;
  244. +
  245. #define RETRY_DELAY 30
  246. KMTronicSerial::KMTronicSerial(const int ID, const std::string& devname)
  247. diff --git a/hardware/MQTT.cpp b/hardware/MQTT.cpp
  248. index 8de3671853..19750bb75b 100644
  249. --- a/hardware/MQTT.cpp
  250. +++ b/hardware/MQTT.cpp
  251. @@ -11,6 +11,8 @@
  252. #define __STDC_FORMAT_MACROS
  253. #include <inttypes.h>
  254. +using namespace boost::placeholders;
  255. +
  256. #define RETRY_DELAY 30
  257. #define CLIENTID "Domoticz"
  258. diff --git a/hardware/Meteostick.cpp b/hardware/Meteostick.cpp
  259. index 9793f4b57b..10da69d6e3 100644
  260. --- a/hardware/Meteostick.cpp
  261. +++ b/hardware/Meteostick.cpp
  262. @@ -9,12 +9,14 @@
  263. #include <string>
  264. #include <algorithm>
  265. #include <iostream>
  266. -#include <boost/bind.hpp>
  267. +#include <boost/bind/bind.hpp>
  268. #include "../main/localtime_r.h"
  269. #include "../main/mainworker.h"
  270. #include <ctime>
  271. +using namespace boost::placeholders;
  272. +
  273. #define RETRY_DELAY 30
  274. #define round(a) ( int ) ( a + .5 )
  275. diff --git a/hardware/MySensorsBase.cpp b/hardware/MySensorsBase.cpp
  276. index af976fba95..42bf58fad5 100644
  277. --- a/hardware/MySensorsBase.cpp
  278. +++ b/hardware/MySensorsBase.cpp
  279. @@ -13,7 +13,7 @@
  280. #include <sstream>
  281. #include <algorithm>
  282. #include <iostream>
  283. -#include <boost/bind.hpp>
  284. +#include <boost/bind/bind.hpp>
  285. #include "../webserver/cWebem.h"
  286. #include <json/json.h>
  287. diff --git a/hardware/MySensorsSerial.cpp b/hardware/MySensorsSerial.cpp
  288. index 44f8692d2b..42f3e05409 100644
  289. --- a/hardware/MySensorsSerial.cpp
  290. +++ b/hardware/MySensorsSerial.cpp
  291. @@ -8,12 +8,14 @@
  292. #include "hardwaretypes.h"
  293. #include <algorithm>
  294. -#include <boost/bind.hpp>
  295. +#include <boost/bind/bind.hpp>
  296. #include <boost/exception/diagnostic_information.hpp>
  297. #include <ctime>
  298. #include <iostream>
  299. #include <string>
  300. +using namespace boost::placeholders;
  301. +
  302. //#define DEBUG_MYSENSORS
  303. #define RETRY_DELAY 30
  304. diff --git a/hardware/OTGWBase.cpp b/hardware/OTGWBase.cpp
  305. index 322574458b..ded3a31c2c 100644
  306. --- a/hardware/OTGWBase.cpp
  307. +++ b/hardware/OTGWBase.cpp
  308. @@ -12,7 +12,7 @@
  309. #include <string>
  310. #include <algorithm>
  311. #include <iostream>
  312. -#include <boost/bind.hpp>
  313. +#include <boost/bind/bind.hpp>
  314. #include <json/json.h>
  315. #include <ctime>
  316. diff --git a/hardware/OTGWSerial.cpp b/hardware/OTGWSerial.cpp
  317. index 4ade70e063..5a3416548f 100644
  318. --- a/hardware/OTGWSerial.cpp
  319. +++ b/hardware/OTGWSerial.cpp
  320. @@ -8,12 +8,14 @@
  321. #include "../main/localtime_r.h"
  322. #include <algorithm>
  323. -#include <boost/bind.hpp>
  324. +#include <boost/bind/bind.hpp>
  325. #include <boost/exception/diagnostic_information.hpp>
  326. #include <ctime>
  327. #include <iostream>
  328. #include <string>
  329. +using namespace boost::placeholders;
  330. +
  331. #define RETRY_DELAY 30
  332. #define OTGW_READ_INTERVAL 10
  333. diff --git a/hardware/OpenWebNetUSB.cpp b/hardware/OpenWebNetUSB.cpp
  334. index bf23049844..352a2220e9 100644
  335. --- a/hardware/OpenWebNetUSB.cpp
  336. +++ b/hardware/OpenWebNetUSB.cpp
  337. @@ -19,11 +19,12 @@ License: Public domain
  338. #include <algorithm>
  339. #include <ctime>
  340. -#include <boost/bind.hpp>
  341. +#include <boost/bind/bind.hpp>
  342. #include <boost/exception/diagnostic_information.hpp>
  343. #include <iostream>
  344. #include <string>
  345. +using namespace boost::placeholders;
  346. COpenWebNetUSB::COpenWebNetUSB(const int ID, const std::string& devname, unsigned int baud_rate)
  347. {
  348. diff --git a/hardware/P1MeterSerial.cpp b/hardware/P1MeterSerial.cpp
  349. index 566b451fa5..7dc3e0782e 100644
  350. --- a/hardware/P1MeterSerial.cpp
  351. +++ b/hardware/P1MeterSerial.cpp
  352. @@ -14,10 +14,12 @@
  353. #include <string>
  354. #include <algorithm>
  355. #include <iostream>
  356. -#include <boost/bind.hpp>
  357. +#include <boost/bind/bind.hpp>
  358. #include <ctime>
  359. +using namespace boost::placeholders;
  360. +
  361. #ifdef _DEBUG
  362. //#define DEBUG_P1_R
  363. #endif
  364. diff --git a/hardware/Pinger.cpp b/hardware/Pinger.cpp
  365. index d3e2fda942..b6dc78a786 100644
  366. --- a/hardware/Pinger.cpp
  367. +++ b/hardware/Pinger.cpp
  368. @@ -19,6 +19,8 @@
  369. #include <iostream>
  370. +using namespace boost::placeholders;
  371. +
  372. #if BOOST_VERSION >= 107000
  373. #define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context())
  374. #else
  375. diff --git a/hardware/RAVEn.cpp b/hardware/RAVEn.cpp
  376. index d9efc7480a..b6a4399d04 100644
  377. --- a/hardware/RAVEn.cpp
  378. +++ b/hardware/RAVEn.cpp
  379. @@ -8,6 +8,8 @@
  380. #include "../tinyxpath/tinyxml.h"
  381. #include "hardwaretypes.h"
  382. +using namespace boost::placeholders;
  383. +
  384. //Rainforest RAVEn USB ZigBee Smart Meter Adapter
  385. //https://rainforestautomation.com/rfa-z106-raven/
  386. diff --git a/hardware/RFLinkSerial.cpp b/hardware/RFLinkSerial.cpp
  387. index c5cae0f739..4ab07ed88e 100644
  388. --- a/hardware/RFLinkSerial.cpp
  389. +++ b/hardware/RFLinkSerial.cpp
  390. @@ -5,6 +5,8 @@
  391. #include "../main/localtime_r.h"
  392. #include <boost/exception/diagnostic_information.hpp>
  393. +using namespace boost::placeholders;
  394. +
  395. CRFLinkSerial::CRFLinkSerial(const int ID, const std::string& devname) :
  396. m_szSerialPort(devname)
  397. {
  398. diff --git a/hardware/RFXComSerial.cpp b/hardware/RFXComSerial.cpp
  399. index dc85f4832d..4c39520510 100644
  400. --- a/hardware/RFXComSerial.cpp
  401. +++ b/hardware/RFXComSerial.cpp
  402. @@ -12,7 +12,7 @@
  403. #include <string>
  404. #include <algorithm>
  405. #include <iostream>
  406. -#include <boost/bind.hpp>
  407. +#include <boost/bind/bind.hpp>
  408. #include <ctime>
  409. @@ -23,6 +23,8 @@
  410. #include <pwd.h>
  411. #endif
  412. +using namespace boost::placeholders;
  413. +
  414. #define RETRY_DELAY 30
  415. #define RFX_WRITE_DELAY 300
  416. diff --git a/hardware/RFXComTCP.cpp b/hardware/RFXComTCP.cpp
  417. index 7c6b3954b8..0e4856fbfb 100644
  418. --- a/hardware/RFXComTCP.cpp
  419. +++ b/hardware/RFXComTCP.cpp
  420. @@ -1,8 +1,6 @@
  421. #include "stdafx.h"
  422. #include "RFXComTCP.h"
  423. #include "../main/Logger.h"
  424. -//#include <boost/bind.hpp>
  425. -//#include <boost/asio.hpp>
  426. #include "../main/Helper.h"
  427. #include "../main/localtime_r.h"
  428. #include "../main/mainworker.h"
  429. diff --git a/hardware/Rego6XXSerial.cpp b/hardware/Rego6XXSerial.cpp
  430. index b94bd291bc..15d22f869a 100644
  431. --- a/hardware/Rego6XXSerial.cpp
  432. +++ b/hardware/Rego6XXSerial.cpp
  433. @@ -16,11 +16,13 @@
  434. #include <string>
  435. #include <algorithm>
  436. #include <iostream>
  437. -#include <boost/bind.hpp>
  438. +#include <boost/bind/bind.hpp>
  439. #include "hardwaretypes.h"
  440. #include <ctime>
  441. +using namespace boost::placeholders;
  442. +
  443. #define Rego6XX_RETRY_DELAY 30
  444. #define Rego6XX_COMMAND_DELAY 5
  445. #define Rego6XX_READ_BUFFER_MASK (Rego6XX_READ_BUFFER_SIZE - 1)
  446. diff --git a/hardware/S0MeterBase.cpp b/hardware/S0MeterBase.cpp
  447. index 9cffa67022..75a06e2cc1 100644
  448. --- a/hardware/S0MeterBase.cpp
  449. +++ b/hardware/S0MeterBase.cpp
  450. @@ -13,7 +13,7 @@
  451. #include <string>
  452. #include <algorithm>
  453. #include <iostream>
  454. -#include <boost/bind.hpp>
  455. +#include <boost/bind/bind.hpp>
  456. #include <ctime>
  457. diff --git a/hardware/S0MeterSerial.cpp b/hardware/S0MeterSerial.cpp
  458. index 1dc16b2b3e..f474d1c766 100644
  459. --- a/hardware/S0MeterSerial.cpp
  460. +++ b/hardware/S0MeterSerial.cpp
  461. @@ -8,11 +8,13 @@
  462. #include <algorithm>
  463. #include <ctime>
  464. -#include <boost/bind.hpp>
  465. +#include <boost/bind/bind.hpp>
  466. #include <boost/exception/diagnostic_information.hpp>
  467. #include <iostream>
  468. #include <string>
  469. +using namespace boost::placeholders;
  470. +
  471. #ifdef _DEBUG
  472. //#define DEBUG_S0
  473. #define TOT_DEBUG_LINES 6
  474. diff --git a/hardware/TCPProxy/tcpproxy_server.cpp b/hardware/TCPProxy/tcpproxy_server.cpp
  475. index 60445d9c28..82ba3559d9 100644
  476. --- a/hardware/TCPProxy/tcpproxy_server.cpp
  477. +++ b/hardware/TCPProxy/tcpproxy_server.cpp
  478. @@ -15,6 +15,8 @@
  479. #include "stdafx.h"
  480. #include "tcpproxy_server.h"
  481. +using namespace boost::placeholders;
  482. +
  483. #if BOOST_VERSION >= 107000
  484. #define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context())
  485. #else
  486. diff --git a/hardware/TeleinfoSerial.cpp b/hardware/TeleinfoSerial.cpp
  487. index 85f9a6240f..fa794802e9 100644
  488. --- a/hardware/TeleinfoSerial.cpp
  489. +++ b/hardware/TeleinfoSerial.cpp
  490. @@ -28,9 +28,11 @@ History :
  491. #include "../main/localtime_r.h"
  492. #include "../main/Logger.h"
  493. -#include <boost/bind.hpp>
  494. +#include <boost/bind/bind.hpp>
  495. #include <boost/exception/diagnostic_information.hpp>
  496. +using namespace boost::placeholders;
  497. +
  498. CTeleinfoSerial::CTeleinfoSerial(const int ID, const std::string& devname, const int datatimeout, unsigned int baud_rate, const bool disable_crc, const int ratelimit)
  499. {
  500. m_HwdID = ID;
  501. diff --git a/hardware/USBtin.cpp b/hardware/USBtin.cpp
  502. index c3e3656319..ce6f542df3 100644
  503. --- a/hardware/USBtin.cpp
  504. +++ b/hardware/USBtin.cpp
  505. @@ -27,7 +27,7 @@ History :
  506. #include "../main/SQLHelper.h"
  507. #include <algorithm>
  508. -#include <boost/bind.hpp>
  509. +#include <boost/bind/bind.hpp>
  510. #include <boost/exception/diagnostic_information.hpp>
  511. #include <cstdlib>
  512. #include <ctime>
  513. @@ -35,6 +35,8 @@ History :
  514. #include <string>
  515. #include <time.h>
  516. +using namespace boost::placeholders;
  517. +
  518. #define USBTIN_BAUD_RATE 115200
  519. #define USBTIN_PARITY boost::asio::serial_port_base::parity::none
  520. #define USBTIN_CARACTER_SIZE 8
  521. diff --git a/hardware/XiaomiGateway.cpp b/hardware/XiaomiGateway.cpp
  522. index f4567ec62f..e4998faa6a 100644
  523. --- a/hardware/XiaomiGateway.cpp
  524. +++ b/hardware/XiaomiGateway.cpp
  525. @@ -12,7 +12,7 @@
  526. #include "XiaomiHardware.h"
  527. #include <openssl/aes.h>
  528. #include <boost/asio.hpp>
  529. -#include <boost/bind.hpp>
  530. +#include <boost/bind/bind.hpp>
  531. #ifndef WIN32
  532. #include <ifaddrs.h>
  533. diff --git a/hardware/Yeelight.h b/hardware/Yeelight.h
  534. index b063f79743..64fd6f5479 100644
  535. --- a/hardware/Yeelight.h
  536. +++ b/hardware/Yeelight.h
  537. @@ -2,7 +2,6 @@
  538. #include "DomoticzHardware.h"
  539. #include <boost/asio.hpp>
  540. -#include <boost/bind.hpp>
  541. class Yeelight : public CDomoticzHardwareBase
  542. {
  543. diff --git a/hardware/ZiBlueSerial.cpp b/hardware/ZiBlueSerial.cpp
  544. index 9e9db2aff1..8e896897fc 100644
  545. --- a/hardware/ZiBlueSerial.cpp
  546. +++ b/hardware/ZiBlueSerial.cpp
  547. @@ -6,6 +6,8 @@
  548. #include <boost/exception/diagnostic_information.hpp>
  549. +using namespace boost::placeholders;
  550. +
  551. #define ZiBlue_RETRY_DELAY 30
  552. CZiBlueSerial::CZiBlueSerial(const int ID, const std::string& devname) :
  553. diff --git a/hardware/plugins/PluginTransports.cpp b/hardware/plugins/PluginTransports.cpp
  554. index c7e065529f..7fc1cb953e 100644
  555. --- a/hardware/plugins/PluginTransports.cpp
  556. +++ b/hardware/plugins/PluginTransports.cpp
  557. @@ -13,6 +13,8 @@
  558. #include "icmp_header.hpp"
  559. #include "ipv4_header.hpp"
  560. +using namespace boost::placeholders;
  561. +
  562. namespace Plugins {
  563. void CPluginTransport::handleRead(const boost::system::error_code& e, std::size_t bytes_transferred)
  564. diff --git a/main/WebServer.cpp b/main/WebServer.cpp
  565. index 0a19319669..ed92f06e32 100644
  566. --- a/main/WebServer.cpp
  567. +++ b/main/WebServer.cpp
  568. @@ -1,7 +1,7 @@
  569. #include "stdafx.h"
  570. #include "WebServer.h"
  571. #include "WebServerHelper.h"
  572. -#include <boost/bind.hpp>
  573. +#include <boost/bind/bind.hpp>
  574. #include <iostream>
  575. #include <fstream>
  576. #include "mainworker.h"
  577. @@ -65,6 +65,8 @@
  578. #define __STDC_FORMAT_MACROS
  579. #include <inttypes.h>
  580. +using namespace boost::placeholders;
  581. +
  582. #define round(a) ( int ) ( a + .5 )
  583. extern std::string szStartupFolder;
  584. diff --git a/main/mainworker.cpp b/main/mainworker.cpp
  585. index 505f59f49d..5fb2ee9042 100644
  586. --- a/main/mainworker.cpp
  587. +++ b/main/mainworker.cpp
  588. @@ -174,6 +174,8 @@
  589. #include <fstream>
  590. #endif
  591. +using namespace boost::placeholders;
  592. +
  593. #define round(a) ( int ) ( a + .5 )
  594. extern std::string szStartupFolder;
  595. diff --git a/push/FibaroPush.cpp b/push/FibaroPush.cpp
  596. index 0bc54e6cfd..350a8fa893 100644
  597. --- a/push/FibaroPush.cpp
  598. +++ b/push/FibaroPush.cpp
  599. @@ -14,6 +14,8 @@
  600. #define __STDC_FORMAT_MACROS
  601. #include <inttypes.h>
  602. +using namespace boost::placeholders;
  603. +
  604. CFibaroPush::CFibaroPush()
  605. {
  606. m_PushType = PushType::PUSHTYPE_FIBARO;
  607. diff --git a/push/GooglePubSubPush.cpp b/push/GooglePubSubPush.cpp
  608. index 6d0fc82d40..a5b720f219 100644
  609. --- a/push/GooglePubSubPush.cpp
  610. +++ b/push/GooglePubSubPush.cpp
  611. @@ -21,6 +21,8 @@ extern "C" {
  612. #include <boost/python.hpp>
  613. #endif
  614. +using namespace boost::placeholders;
  615. +
  616. extern std::string szUserDataFolder;
  617. // this should be filled in by the preprocessor
  618. diff --git a/push/HttpPush.cpp b/push/HttpPush.cpp
  619. index 8132ca2b43..3d1d51d52e 100644
  620. --- a/push/HttpPush.cpp
  621. +++ b/push/HttpPush.cpp
  622. @@ -15,6 +15,8 @@
  623. #define __STDC_FORMAT_MACROS
  624. #include <inttypes.h>
  625. +using namespace boost::placeholders;
  626. +
  627. CHttpPush::CHttpPush()
  628. {
  629. m_PushType = PushType::PUSHTYPE_HTTP;
  630. diff --git a/push/InfluxPush.cpp b/push/InfluxPush.cpp
  631. index 0a8e99414f..745fdf0496 100644
  632. --- a/push/InfluxPush.cpp
  633. +++ b/push/InfluxPush.cpp
  634. @@ -15,6 +15,8 @@
  635. #define __STDC_FORMAT_MACROS
  636. #include <inttypes.h>
  637. +using namespace boost::placeholders;
  638. +
  639. CInfluxPush::CInfluxPush() :
  640. m_InfluxPort(8086),
  641. m_bInfluxDebugActive(false)
  642. diff --git a/push/WebsocketPush.cpp b/push/WebsocketPush.cpp
  643. index 0fb71f96ec..3c2ce7ed54 100644
  644. --- a/push/WebsocketPush.cpp
  645. +++ b/push/WebsocketPush.cpp
  646. @@ -3,6 +3,8 @@
  647. #include "../webserver/WebsocketHandler.h"
  648. #include "../main/mainworker.h"
  649. +using namespace boost::placeholders;
  650. +
  651. extern boost::signals2::signal<void(const std::string &Subject, const std::string &Text, const std::string &ExtraData, const int Priority, const std::string & Sound, const bool bFromNotification)> sOnNotificationReceived;
  652. diff --git a/tcpserver/TCPServer.cpp b/tcpserver/TCPServer.cpp
  653. index d3b0a94847..3b8d0b9b76 100644
  654. --- a/tcpserver/TCPServer.cpp
  655. +++ b/tcpserver/TCPServer.cpp
  656. @@ -11,7 +11,7 @@
  657. #include "../main/localtime_r.h"
  658. #include <boost/asio.hpp>
  659. #include <algorithm>
  660. -#include <boost/bind.hpp>
  661. +#include <boost/bind/bind.hpp>
  662. namespace tcp {
  663. namespace server {
  664. diff --git a/webserver/cWebem.cpp b/webserver/cWebem.cpp
  665. index f015be097f..63c96f789f 100644
  666. --- a/webserver/cWebem.cpp
  667. +++ b/webserver/cWebem.cpp
  668. @@ -5,7 +5,7 @@
  669. //Modified, extended etc by Robbert E. Peters/RTSS B.V.
  670. #include "stdafx.h"
  671. #include "cWebem.h"
  672. -#include <boost/bind.hpp>
  673. +#include <boost/bind/bind.hpp>
  674. #include "reply.hpp"
  675. #include "request.hpp"
  676. #include "mime_types.hpp"
  677. diff --git a/webserver/connection.cpp b/webserver/connection.cpp
  678. index d3485fe923..afe700e5d7 100644
  679. --- a/webserver/connection.cpp
  680. +++ b/webserver/connection.cpp
  681. @@ -9,7 +9,7 @@
  682. //
  683. #include "stdafx.h"
  684. #include "connection.hpp"
  685. -#include <boost/bind.hpp>
  686. +#include <boost/bind/bind.hpp>
  687. #include <boost/algorithm/string.hpp>
  688. #include "connection_manager.hpp"
  689. #include "request_handler.hpp"
  690. @@ -17,6 +17,8 @@
  691. #include "../main/localtime_r.h"
  692. #include "../main/Logger.h"
  693. +using namespace boost::placeholders;
  694. +
  695. namespace http {
  696. namespace server {
  697. extern std::string convert_to_http_date(time_t time);
  698. diff --git a/webserver/connection_manager.cpp b/webserver/connection_manager.cpp
  699. index b6c20de53f..bf1d9882d0 100644
  700. --- a/webserver/connection_manager.cpp
  701. +++ b/webserver/connection_manager.cpp
  702. @@ -10,10 +10,12 @@
  703. #include "stdafx.h"
  704. #include "connection_manager.hpp"
  705. #include <algorithm>
  706. -#include <boost/bind.hpp>
  707. +#include <boost/bind/bind.hpp>
  708. #include <iostream>
  709. #include "../main/Logger.h"
  710. +using namespace boost::placeholders;
  711. +
  712. namespace http {
  713. namespace server {
  714. diff --git a/webserver/proxyclient.cpp b/webserver/proxyclient.cpp
  715. index c2bcd3178f..423ee0fb4b 100644
  716. --- a/webserver/proxyclient.cpp
  717. +++ b/webserver/proxyclient.cpp
  718. @@ -8,6 +8,8 @@
  719. #include "../tcpserver/TCPServer.h"
  720. #include "sha1.hpp"
  721. +using namespace boost::placeholders;
  722. +
  723. // RK: some defines to make mydomoticz also work when openssl not compiled in
  724. #ifdef WWW_ENABLE_SSL
  725. #define PROXY_PORT 443
  726. diff --git a/webserver/server.cpp b/webserver/server.cpp
  727. index 1eb2137ef2..6025b1cdb5 100644
  728. --- a/webserver/server.cpp
  729. +++ b/webserver/server.cpp
  730. @@ -3,7 +3,7 @@
  731. // ~~~~~~~~~~
  732. //
  733. #include "stdafx.h"
  734. -#include <boost/bind.hpp>
  735. +#include <boost/bind/bind.hpp>
  736. #include "server.hpp"
  737. #include <fstream>
  738. #include "../main/Logger.h"
  739. @@ -11,6 +11,8 @@
  740. #include "../main/localtime_r.h"
  741. #include "../main/mainworker.h"
  742. +using namespace boost::placeholders;
  743. +
  744. extern bool g_bIsWSL;
  745. namespace http {