Skip to content

Commit a1775ce

Browse files
committed
Explicitly define vector type
1 parent df521fc commit a1775ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/data_distribution/binscatter/binscatter_2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ int main() {
1212

1313
auto x = randn(1000000, 0., 1.);
1414
auto y = transform(x, [](double x) { return 2 * x + randn(0, 1); });
15-
std::vector x_line(x.begin(), x.begin() + 1000);
16-
std::vector y_line(y.begin(), y.begin() + 1000);
15+
std::vector<double> x_line(x.begin(), x.begin() + 1000);
16+
std::vector<double> y_line(y.begin(), y.begin() + 1000);
1717

1818
subplot(2, 3, 0);
1919
scatter(x_line, y_line);

0 commit comments

Comments
 (0)