diff --git a/README.md b/README.md index c7bc608..e179199 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # BMSTU-CPP-WORKS - -## BUILD AND RUN GOOGLE TEST! - +## Build and Run CMake GoogleTest ```bash mkdir build && cd build cmake .. diff --git a/dummy_list/basic_list.h b/dummy_list/basic_list.h index 474662c..e0be77c 100644 --- a/dummy_list/basic_list.h +++ b/dummy_list/basic_list.h @@ -174,7 +174,7 @@ class list { size_ = 0; } } - size_t size() const { + [[nodiscard]] size_t size() const { return size_; } void swap(list &other) noexcept {