File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -335,13 +335,13 @@ int main() {
335335 try {
336336 print_info<info::device::preferred_interop_user_sync, bool >(
337337 dev, " Preferred interop user sync" );
338- } catch (sycl::exception &e) {
338+ } catch (const sycl::exception &e) {
339339 std::cout << " Expected exception has been caught: " << e.what ()
340340 << std::endl;
341341 }
342342 try {
343343 print_info<info::device::parent_device, device>(dev, " Parent device" );
344- } catch (sycl::exception &e) {
344+ } catch (const sycl::exception &e) {
345345 std::cout << " Expected exception has been caught: " << e.what ()
346346 << std::endl;
347347 }
@@ -366,7 +366,7 @@ int main() {
366366 platform plt (dev.get_platform ());
367367 try {
368368 print_info<info::platform::profile, std::string>(plt, " Profile" );
369- } catch (sycl::exception &e) {
369+ } catch (const sycl::exception &e) {
370370 std::cout << " Expected exception has been caught: " << e.what ()
371371 << std::endl;
372372 }
You can’t perform that action at this time.
0 commit comments