From 1bfc693d93a82a4c5b225ad068651090fa152f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20B=C3=BCscher?= <7q4kua5cw6hhmu2r@students.rwth-aachen.de> Date: Mon, 23 Jun 2025 10:24:58 +0200 Subject: [PATCH] std::ranges support for dbo::collections std::ranges::end requires std::semiregular for iterators -> make default constructor public --- src/Wt/Dbo/collection.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Wt/Dbo/collection.h b/src/Wt/Dbo/collection.h index 9b38280538..2a45a8a592 100644 --- a/src/Wt/Dbo/collection.h +++ b/src/Wt/Dbo/collection.h @@ -136,6 +136,10 @@ namespace Wt { */ iterator(const iterator& other); + /*! \brief Default constructor. + */ + iterator(); + /*! \brief Destructor. */ ~iterator(); @@ -190,7 +194,6 @@ namespace Wt { private: shared_impl *impl_; - iterator(); iterator(const collection& collection, SqlStatement *statement); void takeImpl(); @@ -216,6 +219,10 @@ namespace Wt { */ const_iterator(const const_iterator& other); + /*! \brief Default constructor. + */ + const_iterator(); + /*! \brief Copy constructor. */ const_iterator(const typename collection::iterator& other); @@ -258,7 +265,6 @@ namespace Wt { private: typename collection::iterator impl_; - const_iterator(); const_iterator(const collection& collection, SqlStatement *statement); friend class collection;