From: Fred Morcos Date: Thu, 10 Aug 2023 14:55:43 +0000 (+0200) Subject: Coding Guidelines: Use decltype in code example X-Git-Tag: rec-5.0.0-alpha1~44^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fcab93111ad9ca86489ed4edda5f8166d20d851;p=thirdparty%2Fpdns.git Coding Guidelines: Use decltype in code example --- diff --git a/CODING_GUIDELINES.md b/CODING_GUIDELINES.md index 6bbf288094..6e7a54966c 100644 --- a/CODING_GUIDELINES.md +++ b/CODING_GUIDELINES.md @@ -180,7 +180,7 @@ C++11 defines atomic compare/exchange operations for `std::shared_ptr`, but they Smart pointers can also be used to wrap C-pointers, such as `FILE*` pointers: ```c++ -auto fp = std::unique_ptr(fopen(certificateFile.c_str(), "r"), fclose); +auto fp = std::unique_ptr(fopen(certificateFile.c_str(), "r"), std::fclose); ``` It also works with types from external C libraries, like OpenSSL: