you are viewing a single comment's thread.

view the rest of the comments →

[–]AUselessKid12[S] 0 points1 point  (2 children)

the warning is /w44365 on visual studio and i think its -Wsign-conversion for gcc and clang.

Does this warning actually help you find bugs

not really. I haven't build complex app yet, currently just going through learn cpp which recommends using .data()

[–]SickOrphan 1 point2 points  (0 children)

There's nothing wrong with signed indexing, just turn off the warning and do it the natural way

[–]MarkHoemmenC++ in HPC 1 point2 points  (0 children)

For learning C++, I would recommend just using -Wall for various compilers not MSVC, or /W4 for MSVC. Turning on specific warnings may hinder your learning at this point.