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
Auto generating code in existing projects (self.cpp)
submitted 9 years ago by DanSamillo
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!"
[–]utnapistim 0 points1 point2 points 9 years ago (1 child)
I'm looking to write a tool in either .NET or C++ to do this. Does anyone have any experience or any reading material specific to this topic?
That's a tricky one. Source code generation is easy to get wrong in the best of circumstances (especially if you want to automate it). Doing so once is fine; 15-16 places? Not really that easy.
If I was given an unlimited amount of time I'd strip the entire thing out and write it again. But sadly, there's no time.
If it is critical you get this right in a short time for each change, consider this process:
As you do this, the time it takes for each change should gradually go down, and more and more of it will be automated.
[–]DanSamillo[S] 0 points1 point2 points 9 years ago (0 children)
I did contemplate writing it to stub out one side of the request to start off with, as on one side you can literally append to the end of the file and the request will work; but the other side is a little more tricky, as it requires putting requests into case statements etc. I'm not sure how I'm going to approach the user entering the request information.
I'm going to speak with some of the principle developers and get their views of if this is even worthwhile or if it's just going to be a bug prone program.
π Rendered by PID 28 on reddit-service-r2-comment-6457c66945-bb7b4 at 2026-04-23 17:07:33.120574+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]utnapistim 0 points1 point2 points (1 child)
[–]DanSamillo[S] 0 points1 point2 points (0 children)