Skip to content

Commit 24f9d0b

Browse files
committed
Remove check for const type parameter
1 parent 7281bf3 commit 24f9d0b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/cxx.h

-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ class Str final {
9090
#ifndef CXXBRIDGE05_RUST_SLICE
9191
template <typename T>
9292
class Slice final {
93-
static_assert(std::is_const<T>::value,
94-
"&[T] needs to be written as rust::Slice<const T> in C++");
95-
9693
public:
9794
Slice() noexcept;
9895
Slice(T *, size_t count) noexcept;

0 commit comments

Comments
 (0)