Project

General

Profile

Actions

Bug #3498

closed

topology-tester.cpp:114:26: error: moving a temporary object prevents copy elision

Added by Davide Pesavento almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Forwarding
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

With clang version 3.8.0 on Linux. Trivial to fix.

[ 26/221] Compiling tests/daemon/fw/topology-tester.cpp
../tests/daemon/fw/topology-tester.cpp:114:26: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  m_forwarders.push_back(std::move(make_unique<Forwarder>()));
                         ^
../tests/daemon/fw/topology-tester.cpp:114:26: note: remove std::move call here
  m_forwarders.push_back(std::move(make_unique<Forwarder>()));
                         ^~~~~~~~~~                        ~
1 error generated.
Actions #1

Updated by Davide Pesavento almost 9 years ago

  • Status changed from New to Code review
  • % Done changed from 0 to 100
Actions #2

Updated by Alex Afanasyev almost 9 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF