Remove __clang__ macros from headers (#4575)

* Fix headers for Clang compilation

* Parameter::Any destructor

* Force RTTI for any compiler

* Parameter::RealData RTTI

* Revert Parameter::Any
This commit is contained in:
Dmitry Kurtaev authored and GitHub committed 2021-03-25 12:26:43 +03:00
1 parent 222a709c6c
commit 64874fa69c
5 files changed
+12 -25

No files matched your search

-6
View File
@@ -315,20 +315,14 @@ void test::IE_Engine::reset()
namespace InferenceEngine
{
// those definitions and template specializations are required for clang (both Linux and Mac)
// Without this section the linker is not able to find destructors for missing TBlob specializations
// which are instantiated in the unit tests that use TestCase and this engine
#ifdef __clang__
template <typename T, typename U>
TBlob<T, U>::~TBlob()
{
free();
}
template class TBlob<unsigned int>;
template class TBlob<bool>;
template class TBlob<ngraph::bfloat16>;
template class TBlob<ngraph::float16>;
template class TBlob<char>;
#endif
} // namespace InferenceEngine