Hi!
Looks like in this emplace_back, forward will not work because there is no type deduction here.The value_type&& here is just a rvalue reference.
|
constexpr void emplace_back(value_type&& value) { v_.emplace_back(forward<value_type>(value)); } |
You need to add a template parameter, something like this:
template<typename T = value_type>
constexpr void emplace_back(T&& value) { v_.emplace_back(forward<T>(value)); }
https://en.cppreference.com/w/cpp/container/vector/emplace_back.html
Hi!
Looks like in this
emplace_back,forwardwill not work because there is no type deduction here.Thevalue_type&&here is just a rvalue reference.graph-v3/include/graph/container/compressed_graph.hpp
Line 177 in 7b060e8
You need to add a template parameter, something like this:
https://en.cppreference.com/w/cpp/container/vector/emplace_back.html