File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 34
34
#include < string>
35
35
#include < memory>
36
36
#include < sstream>
37
+ #include < functional>
37
38
38
39
#include < josepp/types.hpp>
39
40
#include < josepp/digest.hpp>
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ class digest final {
44
44
public:
45
45
static const EVP_MD *md (digest::type t) {
46
46
switch (t) {
47
+ default :
48
+ [[fallthrough]];
47
49
case type::SHA256:
48
50
return EVP_sha256 ();
49
51
case type::SHA384:
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ public:
36
36
37
37
secure_allocator () noexcept = default ;
38
38
39
- secure_allocator (const secure_allocator &) noexcept {}
39
+ secure_allocator (const secure_allocator &) noexcept
40
+ : std::allocator<T>()
41
+ {}
40
42
41
43
template <class U >
42
44
explicit secure_allocator (const secure_allocator<U> &) noexcept {}
You can’t perform that action at this time.
0 commit comments