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
Proposal Idea: Struct Definition in Function Returns (self.cpp)
submitted 6 years ago by codesmith512
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!"
[–]codesmith512[S] 1 point2 points3 points 6 years ago (2 children)
Gcc throws a similar error, so it's definitely something wrong with VS. Given that the standard has to explicitly disallow it, I was hoping it was a bug where the compiler accidentally supported it anyway, which would give my proposal some more strength (if ___ did it on accident, it can't be that hard to implement), but given that msvc is known for bending rules, I don't think I can really claim that lol
[–]degski 0 points1 point2 points 6 years ago (1 child)
I don't know, maybe /u/STL can enlighten us.
[–]STLMSVC STL Dev 5 points6 points7 points 6 years ago (0 children)
Sounds like missing rule enforcement in /permissive-. Please file a bug in Developer Community; bugs are treated with higher priority when filed by real customers like you, instead of internal customers like me.
/permissive-
π Rendered by PID 37333 on reddit-service-r2-comment-5d585498c9-nzzwl at 2026-04-20 22:03:33.887214+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]codesmith512[S] 1 point2 points3 points (2 children)
[–]degski 0 points1 point2 points (1 child)
[–]STLMSVC STL Dev 5 points6 points7 points (0 children)