ivan100sic / competelib-snippets

Snippets for competitive programming
The Unlicense
5 stars 2 forks source link

Bad forwarding in treap::create #10

Closed ivan100sic closed 1 year ago

ivan100sic commented 2 years ago

Should be

int create(A&&... a) {
        b.emplace_back(forward<A>(a)...);
ivan100sic commented 1 year ago

Fixed by #15