)]}' { "commit": "22546df2104bea99d02404844b5b85ca1212c4af", "tree": "bd41b48298810217466728e2442d3270a5c9f362", "parents": [ "054582ba6b811fcf4b35601316ff00de29d3e528" ], "author": { "name": "eladalon", "email": "eladalon@webrtc.org", "time": "Thu Aug 31 11:36:05 2017" }, "committer": { "name": "Commit Bot", "email": "commit-bot@chromium.org", "time": "Thu Aug 31 11:36:05 2017" }, "message": "Allow PostTask() to take unique_ptr to classes derived of QueuedTask\n\nProblem fixed by this CL: Let DerivedQueuedTask be a custom derivation of QueuedTask. Calling PostTask() with a std::unique_ptr\u003cDerivedQueuedTask\u003e does not work, because overload resolution sees PostTask(const Closure\u0026 closure) as a better match. The workaround of explicitly converting to std::unique_ptr\u003cQueuedTask\u003e before calling PostTask() results in less readable code.\n\nSolution: Use std::enable_if to limit the template, thereby making the compiler use the right version of PostTask().\n\nBUG\u003dwebrtc:8188\n\nReview-Url: https://codereview.webrtc.org/3006933002\nCr-Original-Commit-Position: refs/heads/master@{#19625}\nCr-Mirrored-From: https://chromium.googlesource.com/external/webrtc\nCr-Mirrored-Commit: ffe2e141834d80e12a41251a5dfe4ad9581a1baa\n", "tree_diff": [ { "type": "modify", "old_id": "e7eac2f18535ac7030d8c810b11fbf7c1d777800", "old_mode": 33188, "old_path": "rtc_base/task_queue.h", "new_id": "0d9630bbf4f1e824a9f93b95d39c9db8dae72981", "new_mode": 33188, "new_path": "rtc_base/task_queue.h" } ] }