Skip to content

Commit

Permalink
Modified to address compile errors with gcc 11.2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalgano committed Nov 23, 2021
1 parent 0fd4288 commit 3e9534e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/emane/configurationupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ namespace EMANE
* which indicates an error when set @a false.
*/
using ConfigurationValidator =
std::function<std::pair<std::string,bool>(const ConfigurationUpdate & update) noexcept>;
std::function<std::pair<std::string,bool>(const ConfigurationUpdate & update)>;
};

#endif //EMANECONFIGURATIONUPDATE_HEADER_
2 changes: 1 addition & 1 deletion include/emane/utils/functionwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ namespace EMANE

FunctionWrapper & operator=(FunctionWrapper && rhs);

private:
class ImplementaionBase;
private:
std::unique_ptr<ImplementaionBase> pImpl_;

FunctionWrapper(const FunctionWrapper &) = delete;
Expand Down
2 changes: 1 addition & 1 deletion src/python/setup.py.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from distutils.core import setup
from setuptools import setup

setup(name='emane',
version='@VERSION@',
Expand Down
2 changes: 1 addition & 1 deletion test/harness/phydownstreamspeed/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace EMANE
"BroadcastPacketDropTable0"});


for(const auto entry : results)
for(const auto & entry : results)
{
std::vector<int> labelLengths;
for(const auto & label : entry.second.first)
Expand Down
4 changes: 2 additions & 2 deletions test/harness/phyupstreamscenario/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ int main(int argc, char * argv[])
"BroadcastPacketDropTable0"});


for(const auto entry : results)
for(const auto & entry : results)
{
std::cout<<"["<<iActionIndex<<"] "<<entry.first<<std::endl;
std::vector<int> labelLengths;
Expand Down Expand Up @@ -894,7 +894,7 @@ int main(int argc, char * argv[])
{"ReceivePowerTable"});


for(const auto entry : results)
for(const auto & entry : results)
{
std::cout<<"["<<iActionIndex<<"] "<<entry.first<<std::endl;
std::vector<int> labelLengths;
Expand Down
2 changes: 1 addition & 1 deletion test/harness/phyupstreamspeed/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace EMANE
{
auto results =
StatisticService::instance()->queryTable(buildId,names);
for(const auto entry : results)
for(const auto & entry : results)
{
std::vector<int> labelLengths;
for(const auto & label : entry.second.first)
Expand Down

0 comments on commit 3e9534e

Please sign in to comment.