libitm: small update for C++20
commit8ca585e56c1d6837f96ddd88c13ed1e815c74f93
authorMarek Polacek <polacek@redhat.com>
Sat, 3 Feb 2024 14:47:17 +0000 (3 09:47 -0500)
committerMarek Polacek <polacek@redhat.com>
Mon, 5 Feb 2024 15:31:28 +0000 (5 10:31 -0500)
treeb5cf64899dc222032a4bfb690acaf9c852fb9bef
parent23f1b496aa6c7015a2b986aa183041c722104779
libitm: small update for C++20

C++20 DR 2237 disallows simple-template-id in cdtors, so you
can't write

    template<typename T>
    struct S {
      S<T>(); // should be S();
    };

This hasn't been a problem until now but I'm adding a warning about it
to -Wc++20-compat which libitm apparently uses.

libitm/ChangeLog:

* containers.h (vector): Remove the template-id in constructors.
libitm/containers.h