Sfoglia il codice sorgente

doc: more consteval-ness

skypjack 2 mesi fa
parent
commit
8e7b810a3c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      docs/md/faq.md

+ 2 - 2
docs/md/faq.md

@@ -194,11 +194,11 @@ a solution in this case:
 ```cpp
 template<>
 struct entt::type_hash<Type> final {
-    [[nodiscard]] static constexpr id_type value() noexcept {
+    [[nodiscard]] static consteval id_type value() noexcept {
         return hashed_string::value("Type");
     }
 
-    [[nodiscard]] constexpr operator id_type() const noexcept {
+    [[nodiscard]] consteval operator id_type() const noexcept {
         return value();
     }
 };