p3p / MarlinSimUI

Marlin Simulator UI
Other
9 stars 12 forks source link

Compile error with std::move() #12

Closed ellensp closed 2 years ago

ellensp commented 2 years ago
.pio/libdeps/simulator_linux_debug/MarlinSimUI/src/MarlinSimulator/application.cpp: In lambda function:
.pio/libdeps/simulator_linux_debug/MarlinSimUI/src/MarlinSimulator/application.cpp:181:53: error: cannot bind non-const lvalue reference of type ‘vcd::HeadPtr&’ {aka ‘std::unique_ptr<vcd::VCDHeader, vcd::VCDHeaderDeleter>&’} to an rvalue of type ‘std::remove_reference<std::unique_ptr<vcd::VCDHeader, vcd::VCDHeaderDeleter>&>::type’ {aka ‘std::unique_ptr<vcd::VCDHeader, vcd::VCDHeaderDeleter>’}
  181 |           VCDWriter writer{image_filename, std::move(head)};

I'm not sure this is correct fix, but seems to work