CppPatterns-Patterns icon indicating copy to clipboard operation
CppPatterns-Patterns copied to clipboard

A repository of modern C++ patterns curated by the community.

Results 21 CppPatterns-Patterns issues
Sort by recently updated
recently updated
newest added

Method `do_something_impl` is `private` in the base class and `public` in the derived class `foo`. https://github.com/sftrabbit/CppPatterns-Patterns/blob/a222c8438d2c9e81114b9408c2e6a8e767bffb0b/common-tasks/classes/delegate-behavior-to-derived-classes.cpp#L21-L28 For consistency, make `do_something_impl` private. ```c++ class foo : public base { friend class...

Add private access specifier to the `foo` class.

Because you have a custom domain, the SSL certificate provided by Github/Fastly won't work. A workaround is to use Cloudflare. See: https://gist.github.com/coolaj86/e07d42f5961c68fc1fc8

I have added the code snippet that overloads the input operator.

find, find_if and find_if_not functions have been added with an explanation.

Fix a set of off-by-one line references in the sleep pattern description.

Hello, compiling [functions/pass-arrays.cpp](https://github.com/sftrabbit/CppPatterns-Patterns/blob/a222c8438d2c9e81114b9408c2e6a8e767bffb0b/common-tasks/functions/pass-arrays.cpp) with GCC 7.3.0 fails with the following error: ``` gabriel@ubuntu-thinkpad:/tmp$ g++ -std=c++17 dynarr.cpp -o dynarr dynarr.cpp:3:10: fatal error: experimental/dynarray: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~ compilation...

This PR fixes https://github.com/sftrabbit/CppPatterns-Patterns/issues/73 where the inclusion of the no longer supported std::experimental::dynarray prevents compilation. I opted to just remove the dynarray code and supporting part of the article, but...