diff --git a/src/Memory/BorrowedPtr.hpp b/src/Memory/BorrowedPtr.hpp index e931089..c29d677 100644 --- a/src/Memory/BorrowedPtr.hpp +++ b/src/Memory/BorrowedPtr.hpp @@ -30,10 +30,9 @@ namespace ArbUt { return _raw; } inline T operator*() const { - if constexpr (std::is_abstract()){ + if constexpr (std::is_abstract()) { static_assert(!std::is_abstract(), "You're not allowed to dereference an abstract class."); - } - else{ + } else { AssertNotNull(_raw); return *_raw; }