Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[string.view.synop][span.syn] Declaration for primary template and namespace of enable_safe_range #3552

Closed
frederick-vs-ja opened this issue Dec 15, 2019 · 1 comment

Comments

@frederick-vs-ja
Copy link
Contributor

In N4842, the primary template of std::ranges::enable_safe_range is not declared in synopses of <string_view> and <span>, and current namespace of partial specializations might be wrong.

@CaseyCarter
Copy link
Contributor

the primary template of std::ranges::enable_safe_range is not declared in synopses of <string_view> and <span>

We cannot define a template in multiple headers, and there are no non-defining declarations of variable templates in C++. I suppose we could put the primary template in an exposition-only header included by all of <span>, <string_view>, and <ranges>, but it seems like overkill to me. I'm perfectly happy to depict the specializations in individual headers and leave it to "implementor magic" to make that valid.

current namespace of partial specializations might be wrong

I believe I fixed this in #3551.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants