1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:37:36 +00:00

AK: Make Buffered<T> non-copyable.

This commit is contained in:
asynts 2020-10-03 19:11:11 +02:00 committed by Andreas Kling
parent e64f43c3a7
commit b33921531d
2 changed files with 38 additions and 12 deletions

View file

@ -39,11 +39,18 @@ public:
: m_result(res)
{
}
Result(ValueType && res)
: m_result(move(res))
{
}
Result(const ErrorType& error)
: m_error(error)
{
}
Result(ErrorType && error)
: m_error(move(error))
{
}
Result(const ValueType& res, const ErrorType& error)
: m_result(res)