Re: combine different data type

2012-01-30 Thread Daniel Murphy
"Simen Kjærås" wrote in message news:op.v8wj38qf0gp...@biotronic.lan... > On Mon, 30 Jan 2012 13:58:38 +0100, sami wrote: > >> when i do that auto x = [1, "ha"]; >> i have an error Error: incompatible types for ((1) ? ("hgh")): 'int' an

Re: combine different data type

2012-01-30 Thread Simen Kjærås
On Mon, 30 Jan 2012 13:58:38 +0100, sami wrote: when i do that auto x = [1, "ha"]; i have an error Error: incompatible types for ((1) ? ("hgh")): 'int' and 'string' if there any method to combine different data type? You might want to check out std

combine different data type

2012-01-30 Thread sami
when i do that auto x = [1, "ha"]; i have an error Error: incompatible types for ((1) ? ("hgh")): 'int' and 'string' if there any method to combine different data type?