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:
Lucas CHOLLET
2024-04-07 14:21:52 -04:00
committed by Ali Mohammad Pur
parent c0ea8825b5
commit de6507ef94
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
{
}

View File

@@ -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");