From 6ca45d8bddeeb6d046e18d7975020fc20ae492ad Mon Sep 17 00:00:00 2001 From: Wim Haeck Date: Wed, 1 Nov 2023 12:33:29 -0600 Subject: [PATCH] Removed assertions since they generate compiler warnings --- src/tools/ranges/ViewBase.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tools/ranges/ViewBase.hpp b/src/tools/ranges/ViewBase.hpp index f0f65e3..63224d9 100644 --- a/src/tools/ranges/ViewBase.hpp +++ b/src/tools/ranges/ViewBase.hpp @@ -2,7 +2,6 @@ #define NJOY_TOOLS_RANGES_VIEWBASE // system includes -#include #include // other includes @@ -46,7 +45,6 @@ class ViewBase { typename Range::iterator > = true > constexpr decltype(auto) front() const noexcept { - assert( ( !this->empty(), "front(): view is empty" ) ); return *( this->derived().begin() ); } @@ -58,7 +56,6 @@ class ViewBase { typename Range::iterator > = true > constexpr decltype(auto) back() const noexcept { - assert( ( !this->empty(), "back(): view is empty" ) ); return *( std::prev( this->derived().end() ) ); }