From c08224ed26b40d908c886452b18ad6e73b2141ff Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 26 Jun 2020 17:18:50 +0200 Subject: [PATCH] Style fixes. --- src/Memory/BorrowedPtr.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }