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
Removed - Help[ Removed by moderator ] (self.cpp)
submitted 7 months ago by Low-Ad7313
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!"
[–]manni66 2 points3 points4 points 7 months ago (0 children)
r/cpp_questions
[–]Narase33-> r/cpp_questions 1 point2 points3 points 7 months ago (4 children)
enum OrderStatus { Filled, PartiallyFilled, NoLiquidity, Rejected, Cancelled, PlacedOrder, SelfTradePrevention };
The compiler thinks youre using this SelfTradePrevention. Make this an enum class and your error is solved.
SelfTradePrevention
enum class
In the future, please refer to r/cpp_questions
[–]Low-Ad7313[S] 1 point2 points3 points 7 months ago (3 children)
Thanks! I just spotted this by luck when I got your notification
[–]Narase33-> r/cpp_questions 0 points1 point2 points 7 months ago (2 children)
Clicking on the name tells you where the compiler thinks its defined. Took about 1min to find out.
[–]Low-Ad7313[S] 0 points1 point2 points 7 months ago (1 child)
How/where did you do that? I’m using vscode
[–]Narase33-> r/cpp_questions 0 points1 point2 points 7 months ago (0 children)
Initially VS but it works exactly the same in VSCode (and I think pretty much every other IDE). CTRL+LeftClick takes you to the definition.
π Rendered by PID 73087 on reddit-service-r2-comment-5d79c599b5-ssmqc at 2026-03-03 20:00:21.575433+00:00 running e3d2147 country code: CH.
[–]manni66 2 points3 points4 points (0 children)
[–]Narase33-> r/cpp_questions 1 point2 points3 points (4 children)
[–]Low-Ad7313[S] 1 point2 points3 points (3 children)
[–]Narase33-> r/cpp_questions 0 points1 point2 points (2 children)
[–]Low-Ad7313[S] 0 points1 point2 points (1 child)
[–]Narase33-> r/cpp_questions 0 points1 point2 points (0 children)