diff --git a/include/boost/mysql/detail/execution_processor/static_results_impl.hpp b/include/boost/mysql/detail/execution_processor/static_results_impl.hpp index 4a95cf50..f885e15c 100644 --- a/include/boost/mysql/detail/execution_processor/static_results_impl.hpp +++ b/include/boost/mysql/detail/execution_processor/static_results_impl.hpp @@ -263,10 +263,6 @@ BOOST_INLINE_CONSTEXPR std::array() ); -template -using rows_span_t = boost::span< - const typename std::tuple_element...>>::type>; - template class static_results_impl { @@ -331,7 +327,7 @@ public: // User facing template - rows_span_t get_rows() const noexcept + span...>>> get_rows() const noexcept { return std::get(data_.rows); } diff --git a/include/boost/mysql/static_execution_state.hpp b/include/boost/mysql/static_execution_state.hpp index 51a1fa60..10329e8c 100644 --- a/include/boost/mysql/static_execution_state.hpp +++ b/include/boost/mysql/static_execution_state.hpp @@ -161,6 +161,7 @@ public: /** * \brief Returns the number of rows affected by the SQL statement associated to this resultset. + * \details * Note that this is NOT the number of matched rows. If a row * is matched but not affected, it won't be accounted for here. * diff --git a/include/boost/mysql/static_results.hpp b/include/boost/mysql/static_results.hpp index 3b811085..165ca812 100644 --- a/include/boost/mysql/static_results.hpp +++ b/include/boost/mysql/static_results.hpp @@ -108,7 +108,7 @@ public: bool has_value() const noexcept { return impl_.get_interface().is_complete(); } /** - * \brief Returns the rows retrieved by the SQL query (TODO: see this). + * \brief Returns the rows retrieved by the SQL query. * \details * * \tparam I Resultset index. For operations returning more than one resultset, you can explicitly @@ -132,12 +132,7 @@ public: * Constant. */ template - // #ifdef BOOST_MYSQL_DOXYGEN - // boost::span - // #else - detail::rows_span_t - // #endif - rows() const noexcept + span...>>> rows() const noexcept { static_assert(I < sizeof...(StaticRow), "Index I out of range"); BOOST_ASSERT(has_value());