We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
currently in order to use std::tuples and std::variants as Sources, one has to be explicit:
std::tuple
std::variant
auto tup = std::make_tuple(1, '1', "one"); alloy::unpack(tup) >> sink; // equivalent to sink(1, '1', "one"); std::variant<int, char, std::string> var = "two"; alloy::unpack(var) >> sink; // equivalent to sink("two"); // or even alloy::unpack(tup, var) >> sink; // equivalent to sink(1, '1', "one", "two");
should alloy::unpack be implicit instead?
alloy::unpack
auto tup = std::make_tuple(1, '1', "one"); tup >> sink; // equivalent to sink(1, '1', "one"); std::variant<int, char, std::string> var = "two"; var >> sink; // equivalent to sink("two"); alloy::join(tup, var) >> sink; // equivalent to sink(1, '1', "one", "two");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
currently in order to use
std::tuple
s andstd::variant
s as Sources, one has to be explicit:should
alloy::unpack
be implicit instead?The text was updated successfully, but these errors were encountered: