{"action":"opened","issue":{"url":"https://api.github.com/repos/gabime/spdlog/issues/249","repository_url":"https://api.github.com/repos/gabime/spdlog","labels_url":"https://api.github.com/repos/gabime/spdlog/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/gabime/spdlog/issues/249/comments","events_url":"https://api.github.com/repos/gabime/spdlog/issues/249/events","html_url":"https://github.com/gabime/spdlog/issues/249","id":167084320,"number":249,"title":"Custom types fail on mac since c5c6baa","user":{"login":"mdavezac","id":2745737,"avatar_url":"https://avatars.githubusercontent.com/u/2745737?v=3","gravatar_id":"","url":"https://api.github.com/users/mdavezac","html_url":"https://github.com/mdavezac","followers_url":"https://api.github.com/users/mdavezac/followers","following_url":"https://api.github.com/users/mdavezac/following{/other_user}","gists_url":"https://api.github.com/users/mdavezac/gists{/gist_id}","starred_url":"https://api.github.com/users/mdavezac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdavezac/subscriptions","organizations_url":"https://api.github.com/users/mdavezac/orgs","repos_url":"https://api.github.com/users/mdavezac/repos","events_url":"https://api.github.com/users/mdavezac/events{/privacy}","received_events_url":"https://api.github.com/users/mdavezac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-22T16:35:58Z","updated_at":"2016-07-22T16:35:58Z","closed_at":null,"body":"The following does not compile:\r\n\r\n```\r\n#include <complex>\r\n#include <iostream>\r\n#include \"spdlog/spdlog.h\"\r\n\r\nint main(int, char* [])\r\n{\r\n    namespace spd = spdlog;\r\n    try\r\n    {\r\n        // console logger (multithreaded and with color)\r\n        auto console = spd::stdout_logger_mt(\"console\", true);\r\n        console->info(\"An info message example {}..\", std::complex<double>(0, 0));\r\n    }\r\n    catch (const spd::spdlog_ex& ex)\r\n    {\r\n        std::cout << \"Log failed: \" << ex.what() << std::endl;\r\n    }\r\n}\r\n```\r\n\r\nIt seems to come from include/spdlog/details/os.h:274\r\n\r\nThe man page for strerror_r shows a signature compatible with include/spdlog/details/os.h:267.\r\n\r\nline-numbers are for c5c6baa\r\n\r\nI'll try and get a pull-request that detects darwin.\r\n\r\nVerified with clang, gcc, intel."}}
{"actor":{"display_login":"mdavezac"}}