New answers tagged

0 votes

A constexpr, const correct matrix class with compile-time checks

I've improved the initialization list constructor: ...
user avatar
  • 173
2 votes

A constexpr, const correct matrix class with compile-time checks

OverView Pretty sure you use of std::construct_at() in the copy/move assignment operator is UB. You are doing this to try and get around ...
user avatar
  • 91.8k
1 vote

A constexpr, const correct matrix class with compile-time checks

Fix compiler warnings Enable compiler warnings and fix all of them. For GCC and Clang, I recommend using -Wall -W -pedantic; it doesn't warn about everything, but ...
user avatar
  • 34.9k
2 votes
Accepted

A parse function for text line with fields separated by a comma with the known number and their type

Create a helper function To reduce the code repetition, a classic solution is to write a helper function. You can do that here as well. First let's look at how we want ...
user avatar
  • 34.9k
0 votes

C++ B-Tree serialization/deserialization

Throughout the code, I miss documentation: What are the functions specified to return? Why would deserialisation replicate the tree structure serialised, instead of constructing a "suitably ...
user avatar
  • 4,673
0 votes

C++ B-Tree serialization/deserialization

Self answer: the code above missed something. When a read from an input stream succeeds but the value is invalid, the reader has a duty to mark ...
user avatar
  • 1,583

Top 50 recent answers are included