tests file for ByteSize.hpp, fixed typos in ByteSize.hpp

This commit is contained in:
Vladyslav Baranovskyi
2024-10-08 12:40:42 +03:00
parent 03d0da5b56
commit b7140de190
2 changed files with 102 additions and 2 deletions

View File

@@ -134,9 +134,9 @@ namespace OpenVulkano
operator std::string() const { return Format(); }
ByteSize operator +(const ByteSize other) const { return bytes + other.bytes; }
ByteSize operator -(const ByteSize other) const { return bytes + other.bytes; }
ByteSize operator -(const ByteSize other) const { return bytes - other.bytes; }
ByteSize operator +(const size_t other) const { return bytes + other; }
ByteSize operator -(const size_t other) const { return bytes + other; }
ByteSize operator -(const size_t other) const { return bytes - other; }
ByteSize& operator =(const size_t other) { bytes = other; return *this; }
ByteSize& operator =(const ByteSize other) { bytes = other.bytes; return *this; }
ByteSize& operator +=(const size_t other) { bytes += other; return *this; }