revision #1: 第 1 章增加了对 C++17 的支持

This commit is contained in:
Changkun Ou
2018-03-30 14:18:50 +02:00
parent 650ae66792
commit 51282838f8
9 changed files with 207 additions and 222 deletions

View File

@@ -1,13 +1,19 @@
//
// 1.1.cpp
//
// chapter 1 introduction
// c++1x tutorial
//
// created by changkun at changkun.de
//
#include "foo.h"
#include <iostream>
#include <functional>
int main() {
add(1, 2);
[out = std::ref(std::cout << "Result from C code: " << add(1, 2))](){
out.get() << ".\n";
}();
return 0;
}