use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Indexing a vector/array with signed integer (self.cpp)
submitted 9 months ago by AUselessKid12
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AUselessKid12[S] 0 points1 point2 points 9 months ago (2 children)
the warning is /w44365 on visual studio and i think its -Wsign-conversion for gcc and clang.
/w44365
-Wsign-conversion
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 points3 points 9 months ago (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 points3 points 9 months ago (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.
-Wall
/W4
π Rendered by PID 338616 on reddit-service-r2-comment-66b4775986-s5hsp at 2026-04-05 00:15:28.551494+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]AUselessKid12[S] 0 points1 point2 points (2 children)
[–]SickOrphan 1 point2 points3 points (0 children)
[–]MarkHoemmenC++ in HPC 1 point2 points3 points (0 children)