Try to fix clang compilation (note that std::swap does not work
on std::vector<bool>).
Fixed compiler warning.