mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修正gcc4.8编译错误
This commit is contained in:
parent
640ed13d67
commit
38170c702e
@ -753,14 +753,14 @@ void installWebApi() {
|
|||||||
val["code"] = API::Success;
|
val["code"] = API::Success;
|
||||||
auto &data = val["data"];
|
auto &data = val["data"];
|
||||||
for (auto &info : info_list) {
|
for (auto &info : info_list) {
|
||||||
auto obj = reinterpret_pointer_cast<Value>(info);
|
auto obj = static_pointer_cast<Value>(info);
|
||||||
data.append(std::move(*obj));
|
data.append(std::move(*obj));
|
||||||
}
|
}
|
||||||
invoker(200, headerOut, val.toStyledString());
|
invoker(200, headerOut, val.toStyledString());
|
||||||
},
|
},
|
||||||
[](std::shared_ptr<void> &&info) -> std::shared_ptr<void> {
|
[](std::shared_ptr<void> &&info) -> std::shared_ptr<void> {
|
||||||
auto obj = std::make_shared<Value>();
|
auto obj = std::make_shared<Value>();
|
||||||
auto session = reinterpret_pointer_cast<Session>(info);
|
auto session = static_pointer_cast<Session>(info);
|
||||||
(*obj)["peer_ip"] = session->get_peer_ip();
|
(*obj)["peer_ip"] = session->get_peer_ip();
|
||||||
(*obj)["peer_port"] = session->get_peer_port();
|
(*obj)["peer_port"] = session->get_peer_port();
|
||||||
return obj;
|
return obj;
|
||||||
|
Loading…
Reference in New Issue
Block a user