M
Marius Bancila
mariusbancila.ro · Personal blog · on HN since 2012
Marius Bancila, a C++ developer, writes about modern C++ features such as ranges, std::format, east const and virtual inheritance.
What HN saysHN commenters link it for C++ references, including lists of removed C++17 features, ranges before and after examples, east const and converting enums to strings.
25HN people shared it
6linked it in comments
33stories submitted
333story points
3 months agolast shared
2012people per year2026
Most-shared posts
- 1C++17 removed and deprecated features3 people · 5 points · first shared 2018 · discussion on HN
- 2Using East Const in C++3 people · 4 points · first shared 2021 · discussion on HN
- 3Virtual Inheritance in C++2 people · 4 points · first shared 2021 · discussion on HN
- 4C++ code before and after Ranges2 people · 3 points · first shared 2019 · discussion on HN
- 5Formatting Text in C++: The Old and the New Ways2 people · 2 points · first shared 2023 · discussion on HN
- 6The PImpl idiom and the C++26 std:indirect type2 people · 2 points · first shared 2026 · discussion on HN
- 7Improvements to Std:Format in C++262 people · 2 points · first shared 2026 · discussion on HN
- 8How to convert an enum to string in C++2 people · 1 points · first shared 2023 · discussion on HN
- 9No More Plain Old Data (2020)2 people · 1 points · first shared 2021 · discussion on HN
- 10What's new in C++26 (part 1)1 people · 149 points · first shared 2024 · 165 comments on HN
- 11Three new utility functions in C++231 people · 139 points · first shared 2022 · 187 comments on HN
- 12The Evolution of Functions in Modern C++1 people · 2 points · first shared 2022 · discussion on HN
- 13Requires expressions and requires clauses in C++201 people · 2 points · first shared 2022 · discussion on HN
- 14Cppdashboard.dev – The aggregator of what matters in C++1 people · 2 points · first shared 2026 · discussion on HN
- 15Notes on std:optional’s monadic operations1 people · 2 points · first shared 2023 · discussion on HN
What HN people wrote when they linked it
rramadass · 2024-05-23
POD is not an idiom. It was an actual specification (in a sense) for interop between C++ and C. Only in the later standards (maybe starting at C++14?) did the committee refine it further as "POD = Trivial + Standard_Layout" but that is just a redefinition without any fundamental change in semantics. So you can happily write C++ code with just your understanding of POD from C++98 in practice and everything will work fine.
References:
1) Trivial, standard-layout, POD, and literal types - https://learn.microsoft.com/en-us/cpp/cpp/trivial-standard-layout-and-…
2) No more plain old data - https://mariusbancila.ro/blog/2020/08/10/no-more-plain-old-data/
317070 · 2023-09-30
There are a couple of drier alternatives in this blogpost: https://mariusbancila.ro/blog/2023/08/17/how-to-convert-an-enum-to-str…
jcelerier · 2022-06-17
> LINQ is to C#/.NET what <algorithm> is to C++.
algorithms weren't really composable unlike LINQ.
Ranges however are, see the examples here: https://mariusbancila.ro/blog/2019/01/20/cpp-code-samples-before-and-a…
And they also heavily benefit from coroutines, basically allowing to make ranges from anything with e.g. std::generator<T>
enqk · 2021-08-20
look up eastside const
https://mariusbancila.ro/blog/2018/11/23/join-the-east-const-revolutio…
I’ve been using this style at home in a longtime now, I appreciate how it’s more at home with C and more consistent
saagarjha · 2020-02-27
Here’s a list for C++17 and C++20, at least: https://mariusbancila.ro/blog/2018/07/05/c17-removed-and-deprecated-fe…