Skip to content

Constructor with frequency parameter doesn't work #2

@FOp42

Description

@FOp42

If I try to set the multiplex frequency, the object doesn't work at all because _nmuxes contains 0 instead of the given parameter nmuxes. Calling one constructor from the other doesn't seem to work as expected.
Others gave me this hints:
You create a nameless local object of type uMuxOutputLib in your constructor
uMuxOutputLib, which is then immediately destroyed again. This local
Object has nothing to do with the first. So the parameters all end up
in Nirvana.
Please try member initialization and delegating constructor. This is how you do it from C++11.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions