We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2840377 commit 42e7951Copy full SHA for 42e7951
src/include/migraphx/any_ptr.hpp
@@ -58,7 +58,7 @@ struct any_ptr
58
T get() const
59
{
60
static_assert(std::is_pointer<T>{}, "Must be a pointer");
61
- assert(ptr != nullptr);
+ assert(not ti or ptr != nullptr);
62
if(ti and std::type_index{typeid(T)} != *ti)
63
MIGRAPHX_THROW("any_ptr: type mismatch: " + std::string{name} + " != " + get_name<T>());
64
else if(name != get_name<T>())
0 commit comments