Преглед изворни кода

AK: Fixed a typo in NeverDestroyed.h (#1228)

Kaif Mavani пре 5 година
родитељ
комит
fa21c7e8bf
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      AK/NeverDestroyed.h

+ 1 - 1
AK/NeverDestroyed.h

@@ -48,7 +48,7 @@ public:
     const T* operator->() const { return &get(); }
     const T* operator->() const { return &get(); }
 
 
     T& operator*() { return get(); }
     T& operator*() { return get(); }
-    const T* operator*() const { return get(); }
+    const T& operator*() const { return get(); }
 
 
     T& get() { return reinterpret_cast<T&>(storage); }
     T& get() { return reinterpret_cast<T&>(storage); }
     const T& get() const { return reinterpret_cast<T&>(storage); }
     const T& get() const { return reinterpret_cast<T&>(storage); }