Prefer "using" over "typedef"

This commit is contained in:
Antony Polukhin
2024-12-17 16:37:40 +03:00
parent 8a860e05d0
commit 35a71f0701
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ struct foo
operator long() const { return 0; }
};
typedef type<long> long_type;
typedef type<foo> foo_type;
using long_type = type<long>;
using foo_type = type<foo>;
int main()
{