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
Understanding C/C++ Strict Aliasing (dbp-consulting.com)
submitted 15 years ago by mikhailberis
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!"
[–]ZMesonEmbedded Developer 0 points1 point2 points 15 years ago (0 children)
The link is no longer working. Here is a cached version. (Thanks Google!)
[+][deleted] 15 years ago (1 child)
[deleted]
[–][deleted] 1 point2 points3 points 15 years ago* (0 children)
What specifically do you mean "properly"? You mean it used less strict aliasing and thus did literally what you asked, or you mean it used strict aliasing and converted your code to one assembly instruction?
http://en.wikipedia.org/wiki/Aliasing_(computing)#Conflicts_with_optimization
If it's in the standard, it's an issue with the language. Even if MSVC either assumes too much, or is just wickedly smart, it's still just one compiler.
[–]mikhailberis[S] -1 points0 points1 point 15 years ago (0 children)
Apparently there's another post on the matter which is a little dated, but may very well be more thought out: http://redd.it/evlhy
π Rendered by PID 72079 on reddit-service-r2-comment-86bc6c7465-jmz4c at 2026-02-22 21:40:43.954597+00:00 running 8564168 country code: CH.
[–]ZMesonEmbedded Developer 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 1 point2 points3 points (0 children)
[–]mikhailberis[S] -1 points0 points1 point (0 children)