Problem about Tuple.opEquals, const qualifier
bearophile
bearophileHUGS at lycos.com
Sun Mar 18 04:32:10 PDT 2012
Tongzhou Li:
> Another problem. I wrote:
> Tuple!(double, char)[] stack;
> stack ~= tuple(10, '+');
> It won't compile:
I have already shown here how to solve that problem:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=33749
import std.typecons;
void main() {
alias Tuple!(double, char) Pair2;
Pair2[] stack;
stack ~= Pair2(10, '+');
}
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list