From 6a6a3084da47345cf31d17b9d3b6e36d680c74ca Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sun, 9 Jul 2023 19:32:09 +0200 Subject: [PATCH] worked around noexcept forbidding in function typedefs --- test/cfoa/takes_arg_as_cref_tests.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/cfoa/takes_arg_as_cref_tests.cpp b/test/cfoa/takes_arg_as_cref_tests.cpp index d5d0b222..6bc92348 100644 --- a/test/cfoa/takes_arg_as_cref_tests.cpp +++ b/test/cfoa/takes_arg_as_cref_tests.cpp @@ -9,11 +9,13 @@ using boost::unordered::detail::foa::takes_arg_as_const_reference; using f1 = void ( const int& ); -using f2 = void ( const int& ) noexcept; +void function2( const int& ) noexcept; +using f2 = decltype(function2); using f3 = void ( const int&, char* ); using f4 = void ( const int&, ... ); using f5 = void ( int& ); -using f6 = void ( int& ) noexcept; +void function6( int& ) noexcept; +using f6 = decltype(function6); using f7 = void ( int&, char* ); using f8 = void ( int&, ... ); struct f9 { void operator()( const int& ); };