{"action":"created","issue":{"url":"https://api.github.com/repos/boostorg/histogram/issues/184","repository_url":"https://api.github.com/repos/boostorg/histogram","labels_url":"https://api.github.com/repos/boostorg/histogram/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/boostorg/histogram/issues/184/comments","events_url":"https://api.github.com/repos/boostorg/histogram/issues/184/events","html_url":"https://github.com/boostorg/histogram/issues/184","id":436074630,"node_id":"MDU6SXNzdWU0MzYwNzQ2MzA=","number":184,"title":"Variant axes and reduction","user":{"login":"henryiii","id":4616906,"node_id":"MDQ6VXNlcjQ2MTY5MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/4616906?v=4","gravatar_id":"","url":"https://api.github.com/users/henryiii","html_url":"https://github.com/henryiii","followers_url":"https://api.github.com/users/henryiii/followers","following_url":"https://api.github.com/users/henryiii/following{/other_user}","gists_url":"https://api.github.com/users/henryiii/gists{/gist_id}","starred_url":"https://api.github.com/users/henryiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryiii/subscriptions","organizations_url":"https://api.github.com/users/henryiii/orgs","repos_url":"https://api.github.com/users/henryiii/repos","events_url":"https://api.github.com/users/henryiii/events{/privacy}","received_events_url":"https://api.github.com/users/henryiii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-23T08:58:30Z","updated_at":"2019-04-23T20:34:11Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The following code does not work:\r\n\r\n```cpp\r\nstd::vector<double> edges {{1.,2.,3.,4.,5.}};\r\nusing ax_vector = std::vector<axis::variant<axis::regular<>, axis::variable<>>>;\r\n\r\nauto hist = make_histogram(ax_vector{axis::regular<>(10,0,1), axis::variable<>(edges)});\r\nauto hist2 = algorithm::reduce(hist, algorithm::shrink(0, .3, .9));\r\n// Error message:\r\n// libc++abi.dylib: terminating with uncaught exception of type boost::wrapexcept<boost::bad_get>: boost::bad_get: failed value get using boost::get\r\n// fish: './test/BoostHistogram-algorithm…' terminated by signal SIGABRT (Abort)\r\n```\r\n\r\nThe non-variant version works.\r\n\r\nI'm thinking it might be default-constructing the first item in the variant list, rather than matching the original axes?"},"comment":{"url":"https://api.github.com/repos/boostorg/histogram/issues/comments/485963698","html_url":"https://github.com/boostorg/histogram/issues/184#issuecomment-485963698","issue_url":"https://api.github.com/repos/boostorg/histogram/issues/184","id":485963698,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NTk2MzY5OA==","user":{"login":"HDembinski","id":2631586,"node_id":"MDQ6VXNlcjI2MzE1ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/2631586?v=4","gravatar_id":"","url":"https://api.github.com/users/HDembinski","html_url":"https://github.com/HDembinski","followers_url":"https://api.github.com/users/HDembinski/followers","following_url":"https://api.github.com/users/HDembinski/following{/other_user}","gists_url":"https://api.github.com/users/HDembinski/gists{/gist_id}","starred_url":"https://api.github.com/users/HDembinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HDembinski/subscriptions","organizations_url":"https://api.github.com/users/HDembinski/orgs","repos_url":"https://api.github.com/users/HDembinski/repos","events_url":"https://api.github.com/users/HDembinski/events{/privacy}","received_events_url":"https://api.github.com/users/HDembinski/received_events","type":"User","site_admin":false},"created_at":"2019-04-23T20:34:11Z","updated_at":"2019-04-23T20:34:11Z","author_association":"COLLABORATOR","body":"I can reproduce the bug, working on it."}}
{"actor":{"display_login":"HDembinski"}}