Skip to content

Commit 847404a

Browse files
committed
fix windows build
1 parent be22985 commit 847404a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/include/ittapi_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ inline __itt_string_handle* get_or_create_string_handle(std::wstring_view name)
8282
__itt_string_handle* h = create_string_handle(std::wstring(name).c_str());
8383
if (h != nullptr)
8484
{
85-
cache.emplace(h->strW, h);
85+
cache.emplace(static_cast<const wchar_t*>(h->strW), h);
8686
}
8787
return h;
8888
}

0 commit comments

Comments
 (0)