mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-23 11:04:40 +00:00
AK: Decorate Optional<T> with [[nodisard]]
This commit is contained in:
parent
9572c95152
commit
a7a7e6245f
|
@ -34,7 +34,7 @@
|
|||
namespace AK {
|
||||
|
||||
template<typename T>
|
||||
class alignas(T) Optional {
|
||||
class alignas(T) [[nodiscard]] Optional {
|
||||
public:
|
||||
Optional() {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue