mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
18 lines
335 B
C++
18 lines
335 B
C++
//
|
|
// 10.1.without.concepts.cpp
|
|
// chapter 10 cpp20
|
|
// modern c++ tutorial
|
|
//
|
|
// created by changkun at changkun.de
|
|
// https://github.com/changkun/modern-cpp-tutorial
|
|
//
|
|
|
|
|
|
#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;
|
|
} |