Skip to content

Conversation

@hanumantmk
Copy link
Contributor

sub_document.append() specializations for std::string and
stdx::string_view keyed tuples fail to forward for the various cv and
ref qualified variants. To keep up the perfect forwarding, these
functions need to take the key type as a template type parameter and
SFINAE themselves to disambiguate.

sub_document.append() specializations for std::string and
stdx::string_view keyed tuples fail to forward for the various cv and
ref qualified variants.  To keep up the perfect forwarding, these
functions need to take the key type as a template type parameter and
SFINAE themselves to disambiguate.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you just make this std::is_same<typename std::decay<T>::type, U>?

If that works you can just get rid of this helper and use std::is_same directly

@acmorrow
Copy link
Contributor

@hanumantmk Can we try to close this one out?

hanumantmk added a commit that referenced this pull request May 13, 2015
sub_document.append() specializations for std::string and
stdx::string_view keyed tuples fail to forward for the various cv and
ref qualified variants.  To keep up the perfect forwarding, these
functions need to take the key type as a template type parameter and
SFINAE themselves to disambiguate.

Closes #291, #281

Signed-off-by: Adam Midvidy <amidvidy@gmail.com>
@amidvidy amidvidy closed this May 13, 2015
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.

3 participants