1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

AK: Forward declare Error and ErrorOr in AK/Forward.h

This commit is contained in:
Andreas Kling 2021-11-16 00:41:28 +01:00
parent 587f9af960
commit 11aad74dce
2 changed files with 7 additions and 1 deletions

View file

@ -45,7 +45,7 @@ private:
StringView m_string_literal;
};
template<typename T, typename ErrorType = Error>
template<typename T, typename ErrorType>
class [[nodiscard]] ErrorOr {
public:
ErrorOr(T const& value)