Fix clang 3.4 Debug build CE.
GitOrigin-RevId: 3bdbf604bdd4f03da419003d7592a75085fcd2a0
This commit is contained in:
parent
ad33af5a2a
commit
f6fb3c0cd0
@ -212,7 +212,7 @@ class ActorMailbox {
|
||||
queue_.push_unsafe(std::move(message));
|
||||
}
|
||||
|
||||
auto &reader() {
|
||||
td::MpscLinkQueue<ActorMessage>::Reader &reader() {
|
||||
return reader_;
|
||||
}
|
||||
|
||||
@ -1162,11 +1162,11 @@ class ActorMessageHangup : public ActorMessageImpl {
|
||||
class ActorMessageCreator {
|
||||
public:
|
||||
template <class F>
|
||||
static auto lambda(F &&f) {
|
||||
static ActorMessage lambda(F &&f) {
|
||||
return ActorMessage(std::make_unique<ActorMessageLambda<F>>(std::forward<F>(f)));
|
||||
}
|
||||
|
||||
static auto hangup() {
|
||||
static ActorMessage hangup() {
|
||||
return ActorMessage(std::make_unique<ActorMessageHangup>());
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,7 @@ class MpscLinkQueueUniquePtrNode {
|
||||
explicit MpscLinkQueueUniquePtrNode(std::unique_ptr<Value> ptr) : ptr_(std::move(ptr)) {
|
||||
}
|
||||
|
||||
auto to_mpsc_link_queue_node() {
|
||||
MpscLinkQueueImpl::Node *to_mpsc_link_queue_node() {
|
||||
return ptr_.release()->to_mpsc_link_queue_node();
|
||||
}
|
||||
static MpscLinkQueueUniquePtrNode<Value> from_mpsc_link_queue_node(td::MpscLinkQueueImpl::Node *node) {
|
||||
|
@ -264,7 +264,7 @@ class SharedObjectPool {
|
||||
};
|
||||
friend class Deleter;
|
||||
|
||||
auto deleter() {
|
||||
Deleter deleter() {
|
||||
return Deleter(this);
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ class NodeX : public td::MpscLinkQueueImpl::Node {
|
||||
public:
|
||||
explicit NodeX(int value) : value_(value) {
|
||||
}
|
||||
auto to_mpsc_link_queue_node() {
|
||||
td::MpscLinkQueueImpl::Node *to_mpsc_link_queue_node() {
|
||||
return static_cast<td::MpscLinkQueueImpl::Node *>(this);
|
||||
}
|
||||
static NodeX *from_mpsc_link_queue_node(td::MpscLinkQueueImpl::Node *node) {
|
||||
|
Loading…
Reference in New Issue
Block a user