lmi-commits
[Top][All Lists]
Advanced

[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}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]