Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wrongexample
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
wrongexample
7y ago
Maybe you're getting mixed up with Java, but that example type is wrong, since you used `new`, the vector was allocated in the heap and the appropriate type is a pointer type: `vector<T>*`. What's more, that's a highly