opApply with/without ref

bearophile bearophileHUGS at lycos.com
Fri Jan 13 04:36:40 PST 2012


H. S. Teoh:

> 	void opApply(int delegate(ref uint n) cb) const {

Use "const ref":
> 	void opApply(int delegate(const ref uint n) cb) const {

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list