Skip to content

Selectors accept actual compile-time strings#41

Open
ldionne wants to merge 1 commit intomasterfrom
ldionne-selectors
Open

Selectors accept actual compile-time strings#41
ldionne wants to merge 1 commit intomasterfrom
ldionne-selectors

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