A recent change https://reviews.llvm.org/D58332 implemented P0646R1.
However, the change does not fix any defects in the C++ Standard and
thus should not be applied retroactively.
This patch changes the return type of the remove, remove_if and
unique member functions of the class templates list and forward_list
back to void in versions prior to c++2a.
As the P0646R1 paper suggests, modern compilers are smart enough to
optimize out the code related to counting the number of removed
elements, so only minimal changes are required in the implementation
of the functions mentioned above.