workaround for an issue with VS (close #264)

This commit is contained in:
Michele Caini
2019-06-16 17:10:25 +02:00
parent 9e44fdbc55
commit 038448865b

View File

@@ -61,11 +61,11 @@ struct insertion_sort {
auto pre = it++;
auto value = *pre;
while(pre-- != first && compare(value, *pre)) {
*(pre+1) = *pre;
for(; pre != first && compare(value, *(pre-1)); --pre) {
*pre = *(pre-1);
}
*(pre+1) = value;
*pre = value;
}
}
}