neighbor/smbclient: add splice_after() fallback for gcc 4.6
This commit is contained in:
parent
1451344221
commit
5273900b0e
@ -215,7 +215,14 @@ SmbclientNeighborExplorer::Run()
|
|||||||
prev = i;
|
prev = i;
|
||||||
} else {
|
} else {
|
||||||
/* can't see it anymore: move to "lost" */
|
/* can't see it anymore: move to "lost" */
|
||||||
|
#if defined(__clang__) || GCC_CHECK_VERSION(4,7)
|
||||||
lost.splice_after(lost.before_begin(), list, prev);
|
lost.splice_after(lost.before_begin(), list, prev);
|
||||||
|
#else
|
||||||
|
/* the forward_list::splice_after() lvalue
|
||||||
|
reference overload is missing in gcc 4.6 */
|
||||||
|
lost.emplace_front(std::move(*i));
|
||||||
|
list.erase_after(prev);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user