فهرست منبع

entity: rollback some consteval to constexpr to please all compilers

skypjack 3 ماه پیش
والد
کامیت
e50ee6a956
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/entt/entity/entity.hpp

+ 4 - 4
src/entt/entity/entity.hpp

@@ -219,7 +219,7 @@ struct null_t {
      * @param other A null object.
      * @param other A null object.
      * @return True in all cases.
      * @return True in all cases.
      */
      */
-    [[nodiscard]] consteval bool operator==([[maybe_unused]] const null_t other) const noexcept {
+    [[nodiscard]] constexpr bool operator==([[maybe_unused]] const null_t other) const noexcept {
         return true;
         return true;
     }
     }
 
 
@@ -228,7 +228,7 @@ struct null_t {
      * @param other A null object.
      * @param other A null object.
      * @return False in all cases.
      * @return False in all cases.
      */
      */
-    [[nodiscard]] consteval bool operator!=([[maybe_unused]] const null_t other) const noexcept {
+    [[nodiscard]] constexpr bool operator!=([[maybe_unused]] const null_t other) const noexcept {
         return false;
         return false;
     }
     }
 
 
@@ -298,7 +298,7 @@ struct tombstone_t {
      * @param other A tombstone object.
      * @param other A tombstone object.
      * @return True in all cases.
      * @return True in all cases.
      */
      */
-    [[nodiscard]] consteval bool operator==([[maybe_unused]] const tombstone_t other) const noexcept {
+    [[nodiscard]] constexpr bool operator==([[maybe_unused]] const tombstone_t other) const noexcept {
         return true;
         return true;
     }
     }
 
 
@@ -307,7 +307,7 @@ struct tombstone_t {
      * @param other A tombstone object.
      * @param other A tombstone object.
      * @return False in all cases.
      * @return False in all cases.
      */
      */
-    [[nodiscard]] consteval bool operator!=([[maybe_unused]] const tombstone_t other) const noexcept {
+    [[nodiscard]] constexpr bool operator!=([[maybe_unused]] const tombstone_t other) const noexcept {
         return false;
         return false;
     }
     }