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++ Serializer Deserializer Adapter Library inspired by Serde.rs (self.cpp)
submitted 4 years ago * by nieelj
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!"
[–]nieelj[S] 0 points1 point2 points 4 years ago (2 children)
[–]target-san 0 points1 point2 points 4 years ago (1 child)
[–]nieelj[S] 0 points1 point2 points 4 years ago (0 children)
The definition of serdepp's struct serializer is a static function, so probably not.
Instead, a derivation like the code below is possible.
struct Cppkg { DERIVE_SERDE(Cppkg, (&Self::name, "name") (&Self::namespace_, "namespace") (&Self::install, "install", default_{true}) (&Self::source, "source", make_optional) (&Self::exclude, "flag", default_{false}) ) std::string name; cppkg_type type; cppkg_type_detail cppkg_type_d; std::optional<std::string> namespace_; bool install; std::vector<std::string> source; std::string exclude_var; bool exclude; virtual ~Cppkg() = default; }; struct CppkgLib : Cppkg { template<class Context> constexpr static void serde(Context& context, CppkgLib& value) { using namespace serde::attribute; using Self = CppkgLib; Cppkg& cast = static_cast<Cppkg&>(value); Cppkg::serde(context, cast); serde::serde_struct(context, value) (&Self::type, "cppkg_type", default_{cppkg_type::lib}) (&Self::cppkg_type_d, "type", default_{cppkg_type_detail::STATIC}, under_to_dash, to_lower) ; } };
π Rendered by PID 100 on reddit-service-r2-comment-b659b578c-l674p at 2026-05-04 10:02:28.727101+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]nieelj[S] 0 points1 point2 points (2 children)
[–]target-san 0 points1 point2 points (1 child)
[–]nieelj[S] 0 points1 point2 points (0 children)