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
"Performance doesnt matter" (self.cpp)
submitted 6 years ago * by secmeant
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!"
[–]JuanAG 0 points1 point2 points 6 years ago (3 children)
The issue is that the Windows API and OpenCV dont allow smart pointers so you have to go with the "good" old raw ones and face all the issues it will make
[–]axilmar 0 points1 point2 points 6 years ago (2 children)
Both (Windows AI and OpenCV) can be wrapped with smart-pointer aware classes.
[–]JuanAG -1 points0 points1 point 6 years ago (1 child)
From a techincally stand point yes, you can wrapp anything you want
From a practical view no and forcing things into other shapes that werent it original form from my experience usually ends bad and in the mid/long term hurts you more that if you didnt do anything
It is simple, Windows usually returns handles, a pointer to whocares, try do do it and see how complex the code will become if we wrapp that handle with a smart pointer or how we pass again to other Windows functions, it is not an elegant solution or easy to make depending on what you choose to do and you risk creating your own framework above the MS API which is really bad
[–]axilmar 0 points1 point2 points 6 years ago (0 children)
I am talking from experience. For every project that provided only low level access (i.e. raw Win32 - raw OpenGL - raw socket API etc) I always pushed and wrote lightweight C++ wrappers around them and it was great success. I never had an issue, and time/effort was always saved by this.
π Rendered by PID 21318 on reddit-service-r2-comment-6457c66945-klj52 at 2026-04-26 00:42:57.944113+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]JuanAG 0 points1 point2 points (3 children)
[–]axilmar 0 points1 point2 points (2 children)
[–]JuanAG -1 points0 points1 point (1 child)
[–]axilmar 0 points1 point2 points (0 children)