Skip to content

Commit 32655be

Browse files
committed
Adding success message to structured bindings
1 parent 0a48353 commit 32655be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

C++17/structured_bindings.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ int main()
3232
assert(num == 1);
3333
assert(pi == 3.14);
3434
assert(str == "something");
35-
35+
36+
std::cout << "Tuple decomposition was sucessful\n";
3637

3738
Point p{1, 2, 3};
3839
// here we decompose a Point object into separate variables
@@ -41,5 +42,7 @@ int main()
4142
assert(b == 2);
4243
assert(c == 3);
4344

45+
std::cout << "Point decomposition was successful \n";
46+
4447
return 0;
4548
}

0 commit comments

Comments
 (0)