diff --git a/Source/Common/imstkNew.h b/Source/Common/imstkNew.h index 586f14267c485e268454036a4b92789441dc5eee..7b83d5113638f7d2f6c1556ca5c7f2b50b1c9e53 100644 --- a/Source/Common/imstkNew.h +++ b/Source/Common/imstkNew.h @@ -98,8 +98,8 @@ public: template<typename U> operator std::weak_ptr<U>() const { - static_assert(std::is_base_of<U, T>::value, "Argument U type not compatible with imstkNew<T>'s T"); - return std::dynamic_pointer_cast<U>(object); + static_assert(std::is_base_of<U, T>::value, "Argument U type not compatible with imstkNew<T>'s T"); + return std::dynamic_pointer_cast<U>(object); } private: