From 15b63cc16918fa11e36c5efede2b4ed4e3f60980 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Mon, 10 Jul 2023 10:14:46 +0200 Subject: [PATCH] made some lambdas generic (copypaste error) --- test/cfoa/takes_arg_as_cref_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cfoa/takes_arg_as_cref_tests.cpp b/test/cfoa/takes_arg_as_cref_tests.cpp index 6bc92348..828d1fab 100644 --- a/test/cfoa/takes_arg_as_cref_tests.cpp +++ b/test/cfoa/takes_arg_as_cref_tests.cpp @@ -86,11 +86,11 @@ int main() #if !defined(BOOST_NO_CXX14_GENERIC_LAMBDAS) auto lambda57 = []( const auto& ){}; using f57=decltype(lambda57); - auto lambda58 = [&]( const int& x ) mutable { retrieved = x; }; + auto lambda58 = [&]( const auto& x ) mutable { retrieved = x; }; using f58=decltype(lambda58); - auto lambda59 = []( int& ){}; + auto lambda59 = []( auto& ){}; using f59=decltype(lambda59); - auto lambda60 = [&]( int& x ) mutable { retrieved = x; }; + auto lambda60 = [&]( auto& x ) mutable { retrieved = x; }; using f60=decltype(lambda60); #endif