Add <cassert> header include

This fixes some Linux build failures.
This commit is contained in:
2021-12-09 13:53:52 +00:00
parent 290126fd00
commit 3578b298aa
28 changed files with 52 additions and 26 deletions

View File

@@ -15,7 +15,7 @@ auto md5(MD5Digest& digest, std::string const& s) -> unsigned int
EVP_MD_CTX* md_context{EVP_MD_CTX_new()}; EVP_MD_CTX* md_context{EVP_MD_CTX_new()};
assert(md_context != nullptr); assert(md_context != nullptr);
EVP_DigestInit_ex2(md_context, md, nullptr); EVP_DigestInit_ex(md_context, md, nullptr);
EVP_DigestUpdate(md_context, s.data(), s.length()); EVP_DigestUpdate(md_context, s.data(), s.length());
EVP_DigestFinal_ex(md_context, digest.data(), &md_len); EVP_DigestFinal_ex(md_context, digest.data(), &md_len);
return md_len; return md_len;

View File

@@ -15,7 +15,7 @@ auto md5(MD5Digest& digest, std::string const& s) -> unsigned int
EVP_MD_CTX* md_context{EVP_MD_CTX_new()}; EVP_MD_CTX* md_context{EVP_MD_CTX_new()};
assert(md_context != nullptr); assert(md_context != nullptr);
EVP_DigestInit_ex2(md_context, md, nullptr); EVP_DigestInit_ex(md_context, md, nullptr);
EVP_DigestUpdate(md_context, s.data(), s.length()); EVP_DigestUpdate(md_context, s.data(), s.length());
EVP_DigestFinal_ex(md_context, digest.data(), &md_len); EVP_DigestFinal_ex(md_context, digest.data(), &md_len);
return md_len; return md_len;

View File

@@ -1,4 +1,5 @@
#include <algorithm> #include <algorithm>
#include <cassert>
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include <limits> #include <limits>

View File

@@ -1,4 +1,5 @@
#include <algorithm> #include <algorithm>
#include <cassert>
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include <limits> #include <limits>

View File

@@ -1,4 +1,5 @@
#include <algorithm> #include <algorithm>
#include <cassert>
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include <limits> #include <limits>

View File

@@ -1,4 +1,5 @@
#include <algorithm> #include <algorithm>
#include <cassert>
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include <limits> #include <limits>

View File

@@ -1,3 +1,4 @@
#include <cassert>
#include <cstdint> #include <cstdint>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@@ -2,6 +2,7 @@
// Created by Matthew Gretton-Dann on 02/12/2021. // Created by Matthew Gretton-Dann on 02/12/2021.
// //
#include <cassert>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@@ -2,6 +2,7 @@
// Created by Matthew Gretton-Dann on 02/12/2021. // Created by Matthew Gretton-Dann on 02/12/2021.
// //
#include <cassert>
#include <iostream> #include <iostream>
#include <set> #include <set>
#include <string> #include <string>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <cctype> #include <cctype>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <cctype> #include <cctype>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@@ -2,6 +2,7 @@
// Created by Matthew Gretton-Dann on 03/12/2021. // Created by Matthew Gretton-Dann on 03/12/2021.
// //
#include <cassert>
#include <iostream> #include <iostream>
#include <map> #include <map>
#include <set> #include <set>

View File

@@ -2,6 +2,7 @@
// Created by Matthew Gretton-Dann on 03/12/2021. // Created by Matthew Gretton-Dann on 03/12/2021.
// //
#include <cassert>
#include <iostream> #include <iostream>
#include <map> #include <map>
#include <set> #include <set>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iostream> #include <iostream>
#include <numeric> #include <numeric>
#include <string> #include <string>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iostream> #include <iostream>
#include <numeric> #include <numeric>
#include <string> #include <string>

View File

@@ -2,6 +2,7 @@
// Created by Matthew Gretton-Dann on 05/12/2021. // Created by Matthew Gretton-Dann on 05/12/2021.
// //
#include <cassert>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@@ -2,6 +2,7 @@
// Created by Matthew Gretton-Dann on 05/12/2021. // Created by Matthew Gretton-Dann on 05/12/2021.
// //
#include <cassert>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@@ -3,6 +3,7 @@
// //
#include <algorithm> #include <algorithm>
#include <cassert>
#include <iostream> #include <iostream>
#include <regex> #include <regex>
#include <string> #include <string>

View File

@@ -3,6 +3,7 @@
// //
#include <algorithm> #include <algorithm>
#include <cassert>
#include <iostream> #include <iostream>
#include <regex> #include <regex>
#include <string> #include <string>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <string_view> #include <string_view>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <string_view> #include <string_view>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iostream> #include <iostream>
#include <set> #include <set>
#include <string> #include <string>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iostream> #include <iostream>
#include <set> #include <set>
#include <string> #include <string>

View File

@@ -1,3 +1,4 @@
#include <cassert>
#include <iomanip> #include <iomanip>
#include <iostream> #include <iostream>
#include <numeric> #include <numeric>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iomanip> #include <iomanip>
#include <iostream> #include <iostream>
#include <numeric> #include <numeric>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iomanip> #include <iomanip>
#include <iostream> #include <iostream>
#include <numeric> #include <numeric>

View File

@@ -2,6 +2,7 @@
// Created by Matthew Gretton-Dann on 05/12/2021. // Created by Matthew Gretton-Dann on 05/12/2021.
// //
#include <cassert>
#include <iostream> #include <iostream>
#include <map> #include <map>
#include <numeric> #include <numeric>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <vector> #include <vector>