[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f12819ba 02/13: Make md5sum_for_file ctor noe
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f12819ba 02/13: Make md5sum_for_file ctor noexcept |
Date: |
Wed, 27 Jul 2022 15:16:33 -0400 (EDT) |
branch: master
commit f12819ba11089edf3b78e0a5086caa44ed8af33d
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Make md5sum_for_file ctor noexcept
This is generally useful, as this ctor indeed never throws, and avoids a
-Wnoexcept from gcc 12 when compiling code using this header.
---
md5sum.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/md5sum.hpp b/md5sum.hpp
index a6151840..3de130ec 100644
--- a/md5sum.hpp
+++ b/md5sum.hpp
@@ -47,7 +47,7 @@ enum class md5_file_mode
struct md5sum_for_file
{
- md5sum_for_file(fs::path&& path, std::string&& sum, md5_file_mode mode)
+ md5sum_for_file(fs::path&& path, std::string&& sum, md5_file_mode mode)
noexcept
:filename {std::move(path)}
,md5sum {std::move(sum)}
,file_mode{mode}
- [lmi-commits] [lmi] master updated (6126d1e0 -> a07a61b8), Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master 7649cf4d 05/13: Modernize class uncopyable and its documentation, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master 41339667 06/13: Rename uncopyable_lmi.hpp -> crtp_base.hpp, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master 48007e3c 09/13: Support an abstract-xor-final hierarchy, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master a07a61b8 13/13: Declutter, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master 22a759fa 12/13: Devirtualize, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master f12819ba 02/13: Make md5sum_for_file ctor noexcept,
Greg Chicares <=
- [lmi-commits] [lmi] master 6e590f5c 01/13: Work around a spurious gcc 12 -Wnull-dereference, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master 0c2fceb0 04/13: Resurrect 'uncopyable_lmi.hpp', Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master cde94ff9 10/13: Use an abstract-xor-final hierarchy, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master efa79f5c 07/13: Establish unit tests for CRTP convenience classes, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master 4ebf92ed 03/13: Suppress warnings for deprecated unary_function in cgicc, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master 21685250 11/13: Use another abstract-xor-final hierarchy, Greg Chicares, 2022/07/27
- [lmi-commits] [lmi] master 2143f359 08/13: Add unit tests for CRTP convenience classes, Greg Chicares, 2022/07/27