commit | 140e9cbc62133a8d1c5782d2e658df09edca3c43 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davidepesa@gmail.com> | Mon Aug 19 00:02:05 2019 -0400 |
committer | Davide Pesavento <davidepesa@gmail.com> | Tue Aug 27 00:22:12 2019 -0400 |
tree | a3a42139d3e6044a7ad6b69f70d3d48d0f2ed6a8 | |
parent | 869b11e5c5bf97177554b54b350621e48a139672 [diff] [blame] |
util: backport C++17 [[nodiscard]] attribute Change-Id: I6bdeeaed09a4a5d36647ec967aead47e4461e583
diff --git a/ndn-cxx/name.hpp b/ndn-cxx/name.hpp index 27859fb..18b1fc3 100644 --- a/ndn-cxx/name.hpp +++ b/ndn-cxx/name.hpp
@@ -135,7 +135,7 @@ public: // access /** @brief Checks if the name is empty, i.e. has no components. */ - bool + NDN_CXX_NODISCARD bool empty() const { return m_wire.elements().empty();