Skip to content

Commit 08c4c04

Browse files
Removing noexcept specifier. new can fail with bad_alloc
1 parent a59084c commit 08c4c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsyclinterface/source/dpctl_sycl_device_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct DeviceCacheBuilder
113113
* post-creation we do not need any further protection to ensure
114114
* thread-safety.
115115
*/
116-
static const DeviceCache &getDeviceCache() noexcept
116+
static const DeviceCache &getDeviceCache()
117117
{
118118
static DeviceCache *cache = new DeviceCache([] {
119119
DeviceCache cache_l{};

0 commit comments

Comments
 (0)