From 2a1e03011119f381ce6a15b3b87bb620855b44b3 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Wed, 5 Oct 2016 20:56:23 +0200 Subject: [PATCH] Fix std::list::empty() --- tstl/include/list.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tstl/include/list.hpp b/tstl/include/list.hpp index 930d35bd..6bdee185 100644 --- a/tstl/include/list.hpp +++ b/tstl/include/list.hpp @@ -155,7 +155,7 @@ struct list { * \brief Indicates if the list is empty */ bool empty() const { - return _size; + return !_size; } /*!