Skip to main content
Vittorio Romeo's user avatar
Vittorio Romeo's user avatar
Vittorio Romeo's user avatar
Vittorio Romeo
  • Member for 15 years, 1 month
  • Last seen this week
173 votes
4 answers
73k views

Is a `=default` move constructor equivalent to a member-wise move constructor?

125 votes
2 answers
7k views

Lambda capture and parameter with same name - who shadows the other? (clang vs gcc)

88 votes
6 answers
68k views

Is there a more efficient implementation for a bidirectional map?

80 votes
5 answers
27k views

Capturing perfectly-forwarded variable in lambda

75 votes
4 answers
7k views

Why is the construction of std::optional<int> more expensive than a std::pair<int, bool>?

57 votes
1 answer
3k views

Does a C++11 range-based for loop condition get evaluated every cycle?

48 votes
7 answers
68k views

Get size of terminal window (rows/columns)

44 votes
1 answer
5k views

Calling `this` member function from generic lambda - clang vs gcc

40 votes
2 answers
3k views

Overloading multiple function objects by reference

38 votes
6 answers
14k views

"Default member initializer needed within definition of enclosing class outside of member functions" - is my code ill-formed?

37 votes
3 answers
3k views

Why are non-placement `new` and `delete` built into the language and not just regular functions?

33 votes
3 answers
5k views

Using std::visit on a class inheriting from std::variant - libstdc++ vs libc++

33 votes
6 answers
4k views

Building asynchronous `future` callback chain from compile-time dependency graph (DAG)

32 votes
4 answers
1k views

Correctly propagating a `decltype(auto)` variable from a function

32 votes
7 answers
5k views

Library design: allow user to decide between "header-only" and dynamically linked?

31 votes
1 answer
5k views

What does it mean for `offsetof` to be "conditionally-supported" for non standard-layout classes in C++17?

31 votes
2 answers
1k views

Is using `std::get<I>` on a `std::tuple` guaranteed to be thread-safe for different values of `I`?

30 votes
7 answers
28k views

Check if local git repo is ahead/behind remote

29 votes
2 answers
1k views

Are there any realistic use cases for `decltype(auto)` variables?

28 votes
2 answers
2k views

Is it undefined behavior to `reinterpret_cast` a `T*` to `T(*)[N]`?

25 votes
3 answers
2k views

Why does `std::make_shared` perform two separate allocations with `-fno-rtti`?

24 votes
3 answers
1k views

Using function argument as part of a constant expression - gcc vs clang

24 votes
1 answer
6k views

Understanding DEFER and OBSTRUCT macros

22 votes
6 answers
10k views

Efficient way of matching entities to systems in an entity component system

22 votes
4 answers
2k views

Preventing users from creating unnamed instances of a class [duplicate]

22 votes
2 answers
1k views

Most vexing parse with array access

22 votes
2 answers
17k views

Is static_cast<T>(...) compile-time or run-time?

21 votes
2 answers
4k views

Should I always move on `sink` constructor or setter arguments?

21 votes
3 answers
14k views

Faster alternatives to .Distinct()

21 votes
1 answer
682 views

Static vector internal data layout - `union` vs `std::aligned_storage_t` - huge performance difference

1
2 3 4 5
11