From 9f4380849f88644d6e38e5348f7e4ffc32885104 Mon Sep 17 00:00:00 2001 From: Paulo Custodio Date: Sun, 27 Jun 2021 16:00:37 +0100 Subject: Refine C++ --- challenge-011/paulo-custodio/cpp/ch-2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'challenge-011/paulo-custodio/cpp/ch-2.cpp') diff --git a/challenge-011/paulo-custodio/cpp/ch-2.cpp b/challenge-011/paulo-custodio/cpp/ch-2.cpp index d2847da6ec..831b467e4f 100644 --- a/challenge-011/paulo-custodio/cpp/ch-2.cpp +++ b/challenge-011/paulo-custodio/cpp/ch-2.cpp @@ -14,7 +14,7 @@ using namespace std; vector> identity_matrix(int n) { vector> id; for (int row = 0; row < n; row++) { - id.push_back({}); + id.emplace_back(); for (int col = 0; col < n; col++) id[row].push_back(col == row ? 1 : 0); } -- cgit