You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello - I'm trying to initialize a yet-unassigned Subscriber member variable in a class constructor, for which the only way I've found so far is to add
to the class initializer list. But this fails during compilation because Converter::null_owned() cannot access the protected constructors of SubscriberBase.
It seems to work fine like this with Publisher, though of course it doesn't look like the ideal way.
The text was updated successfully, but these errors were encountered:
Hello, subscriber does not have an empty constructor by design (since non-initialized subscriber does not make much sense), you can either store it in a pointer or in std::optional if you absolutely can not initialize it in the class initializer list.
Hello - I'm trying to initialize a yet-unassigned Subscriber member variable in a class constructor, for which the only way I've found so far is to add
_mysubscriber(interop::detail::null<zenoh::Subscriber<void>>())
to the class initializer list. But this fails during compilation because Converter::null_owned() cannot access the protected constructors of SubscriberBase.
It seems to work fine like this with Publisher, though of course it doesn't look like the ideal way.
The text was updated successfully, but these errors were encountered: