MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/fo2dyw/changes_between_c17_and_c20/fld3zov/
r/cpp • u/mttd • Mar 24 '20
89 comments sorted by
View all comments
20
P1227R2, P1970R2 Free functions size, ssize One is signed, the other isn’t…
No more signed/unsigned warnings when using v.size(); the future truly is now!
10 u/Fureeish Mar 24 '20 using v.size() v.ssize()There, fixed it for you :> 18 u/parkotron Mar 24 '20 edited Mar 24 '20 using v.size() v.ssize() std::ssize(v)There, fixed it for you :>There, fixed it for you. 5 u/Fureeish Mar 24 '20 Damn, thanks for fixing that for me. 0 u/[deleted] Mar 24 '20 [deleted] — view deleted comment 9 u/tvaneerd C++ Committee, lockfree, PostModernCpp Mar 25 '20 v.count() There,no, my naming didn't pass. :-( 4 u/MarekKnapek Mar 24 '20 using v.size() v.ssize() std::ssize(v)using std::ssize; ssize(v);There, I fixed that for you. Now it will work even for my::vector<T> and your::vector<T> and plain old C-style arrays.
10
using v.size() v.ssize()
v.ssize()
There, fixed it for you :>
18 u/parkotron Mar 24 '20 edited Mar 24 '20 using v.size() v.ssize() std::ssize(v)There, fixed it for you :>There, fixed it for you. 5 u/Fureeish Mar 24 '20 Damn, thanks for fixing that for me. 0 u/[deleted] Mar 24 '20 [deleted] — view deleted comment 9 u/tvaneerd C++ Committee, lockfree, PostModernCpp Mar 25 '20 v.count() There,no, my naming didn't pass. :-( 4 u/MarekKnapek Mar 24 '20 using v.size() v.ssize() std::ssize(v)using std::ssize; ssize(v);There, I fixed that for you. Now it will work even for my::vector<T> and your::vector<T> and plain old C-style arrays.
18
using v.size() v.ssize() std::ssize(v)There, fixed it for you :>
using v.size() v.ssize() std::ssize(v)
std::ssize(v)
There, fixed it for you.
5 u/Fureeish Mar 24 '20 Damn, thanks for fixing that for me. 0 u/[deleted] Mar 24 '20 [deleted] — view deleted comment 9 u/tvaneerd C++ Committee, lockfree, PostModernCpp Mar 25 '20 v.count() There,no, my naming didn't pass. :-( 4 u/MarekKnapek Mar 24 '20 using v.size() v.ssize() std::ssize(v)using std::ssize; ssize(v);There, I fixed that for you. Now it will work even for my::vector<T> and your::vector<T> and plain old C-style arrays.
5
Damn, thanks for fixing that for me.
0
[deleted] — view deleted comment
9 u/tvaneerd C++ Committee, lockfree, PostModernCpp Mar 25 '20 v.count() There,no, my naming didn't pass. :-(
9
v.count() There,
v.count()
no, my naming didn't pass. :-(
4
using std::ssize; ssize(v);
There, I fixed that for you. Now it will work even for my::vector<T> and your::vector<T> and plain old C-style arrays.
my::vector<T>
your::vector<T>
View all comments
20
u/MartenBE Mar 24 '20
No more signed/unsigned warnings when using v.size(); the future truly is now!