mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibCrypto: Remove simple-template-id from constructors
This is disallowed as from C++20. GCC 14 gives an error for these two. See: https://cplusplus.github.io/CWG/issues/2237.html https://stackoverflow.com/questions/71978335/class-templates-constructor-declaration-doesnt-compile-for-c20-but-compiles
This commit is contained in:
committed by
Ali Mohammad Pur
parent
c0ea8825b5
commit
de6507ef94
@@ -96,7 +96,7 @@ public:
|
||||
using KeyType = KeyT;
|
||||
using BlockType = BlockT;
|
||||
|
||||
explicit Cipher<KeyT, BlockT>(PaddingMode mode)
|
||||
explicit Cipher(PaddingMode mode)
|
||||
: m_padding_mode(mode)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
virtual ~GCM() = default;
|
||||
|
||||
template<typename... Args>
|
||||
explicit constexpr GCM<T>(Args... args)
|
||||
explicit constexpr GCM(Args... args)
|
||||
: CTR<T>(args...)
|
||||
{
|
||||
static_assert(T::BlockSizeInBits == 128u, "GCM Mode is only available for 128-bit Ciphers");
|
||||
|
||||
Reference in New Issue
Block a user