I think this is a bug in the script engine, but maybe I'm doing something wrong. If I use ExecuteString to define an array of arrays, like this (this is my entire script):
array<array<float>> myCircleData;
it works fine. But if I set the engine property:
engine->SetEngineProperty(asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE, 1);
Then I get the following error in the script:
"The subtype has no default factory","Section":"array","Row":0,"Col":0}
"Can't instantiate template 'array' with subtype 'float[]'","Section":"ExecuteString","Row":2,"Col":7}
If I try to define an array<array<float>> with initialization (as in array<array<float>> myCircleData = { {1.0,1.0} };), I also get these errors.
Is there any way to use arrays of arrays with the Disallow_value-assign_for_ref_type setting? I would really like to use this setting, but I need arrays of arrays.
Thanks,
-Peter