Get array of elements the base type from Variant

Code



Application output:

x


Application error:

std.variant.VariantException@std/variant.d(1237): Variant: attempting to use incompatible types f963.m.XXX[] and f963.IXXX[] ---------------- ./f963(_Dmain+0x47) [0x42b0c3] ./f963(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().void __lambda1()+0x18) [0x432010] ./f963(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x431f6a] ./f963(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()+0x30) [0x431fd0] ./f963(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x431f6a] ./f963(_d_run_main+0x1a3) [0x431eeb] ./f963(main+0x17) [0x42f7bb] /usr/lib/libc.so.6(__libc_start_main+0xf5) [0x40967a15] ----------------

Paste info


Author: Guest
Views: 1477
Private: no
Expires: Never
Uploaded: 21.11.13 9:01
Votes: 0

Compilation


Compiler: DMD 2.077.1 ( 2.077.1 )
Pointer size: m64

Actions