, 30 2021 . 18:15
+
MasterFF: .
net::io_context ioc;
websocket::stream ws{ ioc };
.
:
Memory.h
class memory {
public:
static net::io_context ioc;
static websocket::stream ws;
};
.
ws
#include "Memory.h"
//....
net::io_context ioc;
memory::ws = ioc; // memory::ws {ioc};
Error (active) E0349 no operator "=" matches these operands
? - .
https://forum.sources.ru/index.php?showtopic=421485&view=findpost&p=3847821
:
C/C++: