{"action":"opened","issue":{"url":"https://api.github.com/repos/kokkos/kokkos/issues/310","repository_url":"https://api.github.com/repos/kokkos/kokkos","labels_url":"https://api.github.com/repos/kokkos/kokkos/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/kokkos/kokkos/issues/310/comments","events_url":"https://api.github.com/repos/kokkos/kokkos/issues/310/events","html_url":"https://github.com/kokkos/kokkos/issues/310","id":157795699,"number":310,"title":"const subview of const view with compile time dimensions on Cuda backend","user":{"login":"dholladay00","id":2100259,"avatar_url":"https://avatars.githubusercontent.com/u/2100259?v=3","gravatar_id":"","url":"https://api.github.com/users/dholladay00","html_url":"https://github.com/dholladay00","followers_url":"https://api.github.com/users/dholladay00/followers","following_url":"https://api.github.com/users/dholladay00/following{/other_user}","gists_url":"https://api.github.com/users/dholladay00/gists{/gist_id}","starred_url":"https://api.github.com/users/dholladay00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dholladay00/subscriptions","organizations_url":"https://api.github.com/users/dholladay00/orgs","repos_url":"https://api.github.com/users/dholladay00/repos","events_url":"https://api.github.com/users/dholladay00/events{/privacy}","received_events_url":"https://api.github.com/users/dholladay00/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-31T23:53:09Z","updated_at":"2016-05-31T23:53:09Z","closed_at":null,"body":"I have a const view `View<const double*[N], LayoutRight, RandomAccess> a;`\r\nI try to assign a const view `View<const double[N], LayoutRight, RandomAccess> b(subview(a,i,ALL()));` which fails to compile. \r\n\r\nIf `a` is does not have `const` in it, then I do **not** receive a compile error (i.e. it compiles).\r\n\r\nI have not tried `auto`, but that could work, would it yield the same thing (correct compile time dimensions, etc.)?\r\n\r\nI have a MWE I can attach if need be. "}}
{"actor":{"display_login":"dholladay00"}}