[AGENT++] hidden overloaded virtual function index_allocated() for some shared table demos

Jochen Katz katz at agentpp.com
Sun Nov 23 21:49:23 CET 2014


Hi,

> I am wondering if it is right that the index_allocated() function is
overwritten with different parameters?
> 
> There was too a compiler warning about this overloaded virtual function:
> 
> agentX++/examples/subagent/src/CMakeFiles/subagent2.dir/if_mib.cpp.o
> In file included from /Users/clausklein/Workspace/cpp/AgentProV4/agentX++/examples/subagent/src/agentpp_test_mib.cpp:27:
> /Users/clausklein/Workspace/cpp/AgentProV4/agentX++/examples/subagent/src/../include/agentpp_test_mib.h:282:15: warning: 'Agentpp::agentppTestSharedEntry::index_allocated' hides overloaded virtual function [-Woverloaded-virtual]
> virtual void index_allocated(const Oidx&, int, int);
>              ^
> /Users/clausklein/Workspace/cpp/AgentProV4/agentX++/examples/../include/agentx_pp/agentx_subagent.h:243:15: note: hidden overloaded virtual function 'Agentpp::AgentXSharedTable::index_allocated' declared here: different number of parameters (5 vs 3)
> virtual void index_allocated(const Oidx&, int, int,

I also think, that this is not right. I assume that the API was changed
without updating the examples. These warnings will be fixed for the next
release.

The other warnings (beside #pragma and unused variable) will also be fixed.

Regards,
  Jochen


More information about the AGENTPP mailing list