{"action":"opened","issue":{"url":"https://api.github.com/repos/ros/roscpp_core/issues/84","repository_url":"https://api.github.com/repos/ros/roscpp_core","labels_url":"https://api.github.com/repos/ros/roscpp_core/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/ros/roscpp_core/issues/84/comments","events_url":"https://api.github.com/repos/ros/roscpp_core/issues/84/events","html_url":"https://github.com/ros/roscpp_core/issues/84","id":326934135,"number":84,"title":"No matching conversion from 'double' to 'pt::microseconds'","user":{"login":"mbreyer","id":10465414,"avatar_url":"https://avatars1.githubusercontent.com/u/10465414?v=4","gravatar_id":"","url":"https://api.github.com/users/mbreyer","html_url":"https://github.com/mbreyer","followers_url":"https://api.github.com/users/mbreyer/followers","following_url":"https://api.github.com/users/mbreyer/following{/other_user}","gists_url":"https://api.github.com/users/mbreyer/gists{/gist_id}","starred_url":"https://api.github.com/users/mbreyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbreyer/subscriptions","organizations_url":"https://api.github.com/users/mbreyer/orgs","repos_url":"https://api.github.com/users/mbreyer/repos","events_url":"https://api.github.com/users/mbreyer/events{/privacy}","received_events_url":"https://api.github.com/users/mbreyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-28T08:00:29Z","updated_at":"2018-05-28T08:00:29Z","closed_at":null,"author_association":"NONE","body":"When compiling the rostime package on my machine, I get the following compiler error:\r\n\r\n```\r\n/Users/michel/Developer/kinetic_ws/src/roscpp_core/rostime/include/ros/impl/time.h:170:35: error: no matching conversion for functional-style cast from 'double' to 'pt::microseconds' (aka 'subsecond_duration<boost::posix_time::time_duration, 1000000>')\r\n    return pt::from_time_t(sec) + pt::microseconds(nsec/1000.0);\r\n```\r\n\r\nAdding an explicit cast to either int32_t or uint32_t seems to solve this issue.\r\n\r\nMy setup\r\n\r\n- macOS 10.13.4\r\n- clang Apple LLVM version 9.1.0\r\n- boost 1.67.0"}}
{"actor":{"display_login":"mbreyer"}}