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

Selectors accept actual compile-time strings #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ldionne
Copy link
Owner

@ldionne ldionne commented Jan 2, 2018

It is possible to forego the decltype step when using selectors, giving:

dyno::only<"foo"_s, "bar"_s>

instead of

dyno::only<decltype("foo"_s), decltype("bar"_s)>

To do this, we only need to add an implicit conversion to char const* to the literal type created by the _s literal. live example. Unfortunately, this is not supported by GCC 7, which is the only compiler I have locally that can actually build Dyno. So I'll wait a bit before making the change.

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

Successfully merging this pull request may close these issues.

1 participant