diff --git a/sycl/source/detail/device_impl.hpp b/sycl/source/detail/device_impl.hpp index c1aa5a52d47c4..3715e0c0ae1ce 100644 --- a/sycl/source/detail/device_impl.hpp +++ b/sycl/source/detail/device_impl.hpp @@ -1512,7 +1512,7 @@ class device_impl { try { return std::any_of( std::begin(supported_archs), std::end(supported_archs), - [=](const arch a) { return this->extOneapiArchitectureIs(a); }); + [this](const arch a) { return this->extOneapiArchitectureIs(a); }); } catch (const sycl::exception &) { // If we're here it means the device does not support architecture // querying