New answers tagged

2 votes

Convert program arguments to std::wstring

I think std::vector is not a good fit for this purpose. std::span would fit a lot better. Here are the features that ...
Incomputable's user avatar
  • 9,484
4 votes

Convert program arguments to std::wstring

Frame Challenge You probably don’t want to use wstring internally. MS Windows has supported UTF-8 since Windows 10 version 1803. On Linux, a wide character is ...
Davislor's user avatar
  • 7,371
4 votes
Accepted

Is this a sane (as in lacking UB) implementation of a ref-counted subscription cleanup?

Avoid relying on globally unique ids A big problem with your class is that you need to provide a unique id, that the ids have to be managed, and that this is done using a global ...
G. Sliepen's user avatar
  • 55.6k
1 vote

Convert program arguments to std::wstring

argv[0] can legally be a null pointer, depending on the platform and the way that your program is invoked. If it is null, then constructing a ...
Toby Speight's user avatar
  • 75.1k
3 votes

Scene Hierarchy with Translation, Rotation and Scale

One observation is the use of "world" vs "local". This appears to be leading to an inappropriate hierarchy, where the children insert themselves into their parent's business. The ...
John Deters's user avatar
6 votes
Accepted

Function composition in the context of data processing pipelines

Issues: There's a technical issue in the implementation is the design of the type trait InvokeResult. The problem lies in the usage of ...
ALX23z's user avatar
  • 2,328

Top 50 recent answers are included