Skip to content

Commit 4547849

Browse files
committed
-ref
1 parent b044b1d commit 4547849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/patterns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ class Synchronized_queue
894894
cv.wait(lk, [&] { return !this->empty() || stoped; });
895895
if (stoped)
896896
throw "stopped";
897-
auto ret = ref(Container::front());
897+
T& ret = Container::front();
898898
this->pop();
899899
return ret;
900900
};

0 commit comments

Comments
 (0)