News for hackers. Stuff that matters.
Re:C++ Patterns: The Badge by dkersten on Wednesday June 12, 2019 @03:56AM (#20162606)
Depending on how you approach it (eg if you don’t instantiate it as {} but instead something like access::device, which is a type alias for Badge<Device>) then I find being explicit about access rights is quite helpful sometimes. In this case, I probably would avoid it too in favour of private headers, but then, I prefer freestanding namespaces functions over objects when possible anyway (too much functional programming maybe), so I’d partition my API that way instead.

There are no comments on this comment yet.