diff --git a/dlib/any/storage.h b/dlib/any/storage.h index 438e5f011..10a7b85c9 100644 --- a/dlib/any/storage.h +++ b/dlib/any/storage.h @@ -330,7 +330,7 @@ namespace dlib I.e. if this object contains the type T then this returns std::type_index{typeid(T)}. !*/ { - DLIB_ASSERT(!is_empty()); + DLIB_ASSERT(!this->is_empty()); return type_id_(); } @@ -520,7 +520,7 @@ namespace dlib I.e. if this object contains the type T then this returns std::type_index{typeid(T)}. !*/ { - DLIB_ASSERT(!is_empty()); + DLIB_ASSERT(!this->is_empty()); return type_id_(); } @@ -768,7 +768,7 @@ namespace dlib I.e. if this object contains the type T then this returns std::type_index{typeid(T)}. !*/ { - DLIB_ASSERT(!is_empty()); + DLIB_ASSERT(!this->is_empty()); return type_id_(); } @@ -866,7 +866,7 @@ namespace dlib I.e. if this object contains the type T then this returns std::type_index{typeid(T)}. !*/ { - DLIB_ASSERT(!is_empty()); + DLIB_ASSERT(!this->is_empty()); return type_id_(); } @@ -960,7 +960,7 @@ namespace dlib I.e. if this object contains the type T then this returns std::type_index{typeid(T)}. !*/ { - DLIB_ASSERT(!is_empty()); + DLIB_ASSERT(!this->is_empty()); return type_id_(); }