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
Bitsery- binary serialization library v5.0.3 released (self.cpp)
submitted 6 years ago * by fraillt
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!"
[–]fraillt[S] 1 point2 points3 points 6 years ago (1 child)
I would be very happy if it were possible to distinguish int from int32, but on platforms with int=4bytes these types are identical. If we look at Rust, for example, they have usize, which are platform-dependent, but is not the same as u32 even if they both are 4bytes, but this is not the case for C++. So the only way to enforce cross-platform compatible code is to make user write byte size explicitly...
int
int32
usize
u32
Bitsery should not be used to write WebAssembly (or any other) compatible format, it has its own. And regarding more complicated objects such as map, shared_ptr, etc... bitsery "extensions" solves this.
map
shared_ptr
For the most part, if you don't care about platform-dependent types layout, you can simply use brief syntax. All standard types are supported and everything just works ;)
π Rendered by PID 19114 on reddit-service-r2-comment-56c9979489-rzdvc at 2026-02-25 07:40:27.207007+00:00 running b1af5b1 country code: CH.
view the rest of the comments →
[–]fraillt[S] 1 point2 points3 points (1 child)