Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Review return-value converter #7

Open
nemothenoone opened this issue Aug 11, 2019 · 0 comments
Open

Review return-value converter #7

nemothenoone opened this issue Aug 11, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@nemothenoone
Copy link
Member

nemothenoone commented Aug 11, 2019

Return-value converter seems to work now only for explicit type-initialized variables:

std::string out = encode<codec::base64>(in.begin(), in.end());

The same construction fails if the variable was initialized earlier:

std::string str = "123";
str = encode<codec::hex>(str.begin(), str.end());

This leads to ambiguous operator= selection.

@nemothenoone nemothenoone added the bug Something isn't working label Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant