Skip to content

Commit e80a712

Browse files
jyj407changkun
authored andcommitted
fix: compilation error for structured binding (changkun#35)
The header <tuple> is missing. After adding it, it compiles fine with clang in c++17 mode.
1 parent db45392 commit e80a712

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code/2/2.05.structured.binding.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
#include <iostream>
10+
#include <tuple>
1011
#include <string>
1112

1213
std::tuple<int, double, std::string> f() {

0 commit comments

Comments
 (0)