From fda6a4d27ef5dc144ce444c9c9616bf897f7aacb Mon Sep 17 00:00:00 2001 From: Daniel Frey Date: Mon, 18 Dec 2023 00:21:29 +0100 Subject: [PATCH] Fix GCC 8 --- include/tao/pq/parameter.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tao/pq/parameter.hpp b/include/tao/pq/parameter.hpp index 9b3c031..785f636 100644 --- a/include/tao/pq/parameter.hpp +++ b/include/tao/pq/parameter.hpp @@ -100,7 +100,7 @@ namespace tao::pq public: template< typename... As > - explicit parameter( As&&... as ) noexcept( noexcept( parameter::bind( std::forward< As >( as )... ) ) ) + explicit parameter( As&&... as ) noexcept( noexcept( std::declval< parameter >().bind( std::forward< As >( as )... ) ) ) { parameter::bind( std::forward< As >( as )... ); } @@ -125,7 +125,7 @@ namespace tao::pq } template< typename... As > - void reset( As&&... as ) noexcept( noexcept( parameter::bind( std::forward< As >( as )... ) ) ) + void reset( As&&... as ) noexcept( noexcept( std::declval< parameter >().bind( std::forward< As >( as )... ) ) ) { for( std::size_t i = 0; i != m_pos; ++i ) { delete m_params[ i ];