RedhawkSDR/framework-bulkioInterfaces — pull request #1 by cshea (2013-12-11 03:06:15+00:00)
Title: Corrected necessity for -fpermissive when building this with gcc 4.7+. G...

The following patch corrects errors when building using gcc 4.7+. GCC no longer performs the extra unqualified lookups for base class scope or unqualifed template function lookups preformed in the past. See http://gcc.gnu.org/gcc-4.7/porting_to.html. The solution is to explicitly call this-> before pushSRI.

The error is :
cpp/bulkio_out_port.cpp:466:27: warning: 'bulkio::OutPort > > >::currentSRIs' is deprecated (declared at ./cpp/bulkio_out_port.h:329) [-Wdeprecated-declarations]
pushSRI(this->currentSRIs[streamID].first);
^
cpp/bulkio_out_port.cpp:466:27: warning: 'bulkio::OutPort > > >::currentSRIs' is deprecated (declared at ./cpp/bulkio_out_port.h:329) [-Wdeprecated-declarations]
cpp/bulkio_out_port.cpp:466:43: error: 'pushSRI' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
pushSRI(this->currentSRIs[streamID].first);
^
cpp/bulkio_out_port.cpp:466:43: note: declarations in dependent base 'bulkio::OutPort > > >' are not found by unqualified lookup
cpp/bulkio_out_port.cpp:466:43: note: use 'this->pushSRI' instead