View Single Post
  #2   Spotlight this post!  
Unread 28-06-2016, 23:17
alst alst is offline
Programming Mentor
AKA: Alan
FRC #0830 (RatPack)
Team Role: Mentor
 
Join Date: Jul 2015
Rookie Year: 1830
Location: MI
Posts: 10
alst is an unknown quantity at this point
Re: C++ NetworkTable code error

(That link should be this instead - missing a colon.)

Basically, the error means that the type of your table variable is "NetworkTable*" (a pointer to a NetworkTable), while GetTable() returns a std::shared_ptr<NetworkTable>, which can't be converted to a NetworkTable* directly. The place you actually want to change is currently line 9 in your code, where you declare "table" - it should be "std::shared_ptr<NetworkTable> table;".
Reply With Quote