Hi all,

I have a complex property with std::vector (sub-configs) inside std:vector (configs). I am trying to modify the property from ruby script.

Changing any already existing value works fine. But once I try to push a new element to the sub-configs and then write it back like

            configs = task.configs.to_a

            configs.each do | config |
                sub_configs = config.sub_configs.to_a
                sub_configs.push( Types::SubConfig.new )
                config.sub_configs = sub_configs
            end

            task.configs = configs

it crashes. Does anybody know how this can be achieved?

Best
Ajish



_______________________________________________
Rock-dev mailing list
Rock-dev@dfki.de
http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev

Reply via email to