Re: [Orocos-users] Assignment operator does not work for StructTypeInfo<OwnTypes>
Peter Soetens <[email protected]> Wed, 12 Feb 2014 00:08:23 +0100
| Newsgroups | gmane.science.robotics.orocos.devel |
|---|---|
| Message-ID | <CAMYDobWbWPgimGft+=387xvvzWVZzaQUDjv7KeQ2orjCZ-geVQ@mail.gmail.com> |
Hi Sandra, On Thu, Feb 6, 2014 at 1:36 PM, Sandra Beyer <[email protected]> wrote: > Hi, > > I'm working with the types_test unit test and found a bug when assigning > > objects of own data types. > > > > To reproduce that bug please expand the > > rtt/tests/types_test.cpp:BOOST_AUTO_TEST_CASE( testTypes): > > > > > > - Types()->addType( new StructTypeInfo<AType,false>("astruct")); > > - somewhere in string test: > > "var astruct aVar\n" + > > "var astruct bVar\n" + > > "aVar.a = 42\n" + > > "do test.assertMsg(aVar.a == 42, \"aVar.a != 42 assignement failed - > > testTypes\")\n" + > > "bVar = aVar\n" + > > "do test.assertMsg(bVar.a == aVar.a, \"bVar.a != aVar.a assignement > > failed - testTypes\")\n" + > > > > > > The assignment of a complete AType will remain untouched. The second > assertion will fail. > > Any solutions? I’m using the orocos-toolchain 2.6 I could reproduce your case in toolchain 2.7 as well. Is this only happening in state machines or also in program scripts ? Peter -- Orocos-Dev mailing list [email protected] http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev