Skip to content

Commit 24099c8

Browse files
Mark static function usm_ndarray_types::typenum_to_lookup_id const
This allows to call it for const struct references.
1 parent ecbe8fb commit 24099c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/libtensor/include/utils/type_dispatch.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class DispatchVectorBuilder
162162
struct usm_ndarray_types
163163
{
164164

165-
int typenum_to_lookup_id(int typenum)
165+
int typenum_to_lookup_id(int typenum) const
166166
{
167167
using typenum_t = dpctl::tensor::detail::typenum_t;
168168
auto const &api = ::dpctl::detail::dpctl_capi::get();

0 commit comments

Comments
 (0)