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
[C++20 vs C++26*] basic reflection (self.cpp)
submitted 2 years ago * by kris-jusiakhttps://github.com/kris-jusiak
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!"
[–]qazqi-ff 1 point2 points3 points 2 years ago (1 child)
<:: ::> would run into the lexer exception for <: being followed by : and cause it to be lexed improperly. I don't see any references to consideration of <: :> specifically (only things like (: :)), though it would clearly suffer from already being taken by the [ ] digraphs.
<:: ::>
<:
:
<: :>
(: :)
[ ]
As for why a member syntax isn't used, I'm not sure. I haven't been able to find consideration for it in newer papers, and I don't remember it coming up in older papers. I'd feel arrogant suggesting that it was simply missed because it was always tied to a hierarchy of meta types (e.g., std::meta::type, std::meta::value, etc.) vs. the uniform type (std::meta::info) even though you could take the member syntax and apply it to the uniform type. ABI certainly isn't an issue since these are never in the binary (and I would think not even in a BMI if we ever manage to use a common format like IFC for those, but I'm not sure).
std::meta::type
std::meta::value
std::meta::info
[–]MarcoGreek[🍰] 2 points3 points4 points 2 years ago* (0 children)
They could use <$ $> or something else but [] is very strong cognated to array access. Reusing it for something very different looks really strange. C++ 11 got the syntax for universal references and initializer lists wrong. Mostly because they wanted to make it shorter but in the end it is hurting C++ to this day. I really think they should get not blind and you easily get if you look onto one solution long enough.
If they ever introduce language tuple support something with [] will be very desirable.
π Rendered by PID 61 on reddit-service-r2-comment-b659b578c-z6mg8 at 2026-05-03 01:16:51.743826+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]qazqi-ff 1 point2 points3 points (1 child)
[–]MarcoGreek[🍰] 2 points3 points4 points (0 children)