see #1: concepts demo

This commit is contained in:
Changkun Ou
2019-07-11 12:34:14 +02:00
parent 7a4a605e0f
commit 69e4c6243d
5 changed files with 121 additions and 18 deletions

View File

@@ -0,0 +1,8 @@
#include <list>
#include <algorithm>
int main() {
std::list<int> l = {1, 2, 3};
// std::sort(l.begin(), l.end()); // tons of compile error
return 0;
}