nasa / trick

Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.
Other
32 stars 16 forks source link

trick-ICG generates io_src code for a deleted default constructor #1606

Closed excaliburtb closed 10 months ago

excaliburtb commented 10 months ago

As of Trick 19.6.0,

if we have the class:

class Foo
{
public:
  Foo() = delete;
  Foo(FooInput & foo);
};

trick will try to generate an io_src_allocate_Foo(int) function with default constructor arguments. My expectation is that a class with this kind of restriction may only be allocated external to trick and the io_src_allocate function would not be implemented.

excaliburtb commented 10 months ago

whoops.. completely wrong issue. will open a new issue with the correct data.