Created by: T8T9
PR types
Bug fixes
PR changes
Others
Describe
resolve #26335 (closed)
The return type of template function DynLoad__##__name() is auto
, and DECLARE_TYPE(__name, args...)
indicates that this function should return void*
, which suits nullptr
. createInferBuilder_INTERNAL in tensorrt and createInferRuntime_INTERNAL in tensorrt return void*
. But getPluginRegistry in tensorrt 6 returns nvinfer1::IPluginRegistry*
, Visual Studio don't convert nvinfer1::IPluginRegistry*
to void*
implicitly like what g++
do, it throws the convert error instead.