I have a class where I want to set iface as a private class variable, so that I can use iface. in different class methods e.g. init() method where I call iface = CellularContext::get_default_instance(); and then iface->set_default_parameters();.
class Cellular {
public:
Cellular():
~Cellular();
int init();
...
private:
NetworkInterface *iface;
};
But I get errors on compile (static_cast). What do I’m wrong?
[Error] NetworkStack.h@455,31: static_cast from 'NetworkInterface **' to 'NetworkInterface *' is not allowed
[ERROR] In file included from ./cellular/Cellular.cpp:13: