{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6285","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6285/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6285/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6285/events","html_url":"https://github.com/bitcoin/bitcoin/pull/6285","id":88522618,"number":6285,"title":"Fix scheduler build with some boost versions.","user":{"login":"theuni","id":417043,"avatar_url":"https://avatars.githubusercontent.com/u/417043?v=3","gravatar_id":"","url":"https://api.github.com/users/theuni","html_url":"https://github.com/theuni","followers_url":"https://api.github.com/users/theuni/followers","following_url":"https://api.github.com/users/theuni/following{/other_user}","gists_url":"https://api.github.com/users/theuni/gists{/gist_id}","starred_url":"https://api.github.com/users/theuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theuni/subscriptions","organizations_url":"https://api.github.com/users/theuni/orgs","repos_url":"https://api.github.com/users/theuni/repos","events_url":"https://api.github.com/users/theuni/events{/privacy}","received_events_url":"https://api.github.com/users/theuni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/Build%20system","name":"Build system","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-15T19:51:04Z","updated_at":"2015-06-16T11:58:58Z","closed_at":"2015-06-16T11:56:02Z","pull_request":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6285","html_url":"https://github.com/bitcoin/bitcoin/pull/6285","diff_url":"https://github.com/bitcoin/bitcoin/pull/6285.diff","patch_url":"https://github.com/bitcoin/bitcoin/pull/6285.patch"},"body":"Some boost versions have a conflicting public overload of wait_until that returns void. Explicitly use a template here to avoid hitting that overload.\r\n\r\nTested against boost 1.52, which is confirmed broken -> fixed.\r\n\r\nFor reference, here are the competing overloads (from thread/pthread/condition_variable_fwd.hpp):\r\n```c++\r\n        template <class Duration>\r\n        cv_status\r\n        wait_until(\r\n                unique_lock<mutex>& lock,\r\n                const chrono::time_point<chrono::system_clock, Duration>& t)\r\n        {\r\n...\r\n        inline void wait_until(\r\n            unique_lock<mutex>& lk,\r\n            chrono::time_point<chrono::system_clock, chrono::nanoseconds> tp)\r\n        {\r\n```\r\n```boost::chrono::system_clock::duration``` is typedef'd as chrono::nanoseconds, so without template params we end up falling into the void-return overload."},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/112400147","html_url":"https://github.com/bitcoin/bitcoin/pull/6285#issuecomment-112400147","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6285","id":112400147,"user":{"login":"laanwj","id":126646,"avatar_url":"https://avatars.githubusercontent.com/u/126646?v=3","gravatar_id":"","url":"https://api.github.com/users/laanwj","html_url":"https://github.com/laanwj","followers_url":"https://api.github.com/users/laanwj/followers","following_url":"https://api.github.com/users/laanwj/following{/other_user}","gists_url":"https://api.github.com/users/laanwj/gists{/gist_id}","starred_url":"https://api.github.com/users/laanwj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laanwj/subscriptions","organizations_url":"https://api.github.com/users/laanwj/orgs","repos_url":"https://api.github.com/users/laanwj/repos","events_url":"https://api.github.com/users/laanwj/events{/privacy}","received_events_url":"https://api.github.com/users/laanwj/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T11:58:58Z","updated_at":"2015-06-16T11:58:58Z","body":"Cherry-picked to 0.11 as ef1d5060544fd4f468a19b090fabae5e3be84e1e"}}