Re: [Vala] Accessing properties of a Map.Entry from a read-only Gee map causes compiler warning

2015-11-21 Thread Al Thomas
> From: Nicolas Laplante > Sent: Thursday, 19 November 2015, 19:33 > Subject: [Vala] Accessing properties of a Map.Entry from a read-only Gee map > causes compiler warning > > foreach (Map.Entry> entry in > transactions_by_date.entries) { > // ... > } &g

[Vala] Accessing properties of a Map.Entry from a read-only Gee map causes compiler warning

2015-11-19 Thread Nicolas Laplante
I have the following map declaration: Map> transactions_by_date = new HashMap> (); Then I iterate over its entries: foreach (Map.Entry> entry in transactions_by_date.entries) { // ... // ... } Within this loop, whenver I access entry.key or entry.value, I get the following compiler wa