Sfoglia il codice sorgente

handle: drop a [[nodiscard]] that breaks toolset v141

Michele Caini 1 anno fa
parent
commit
f4431368e3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/entt/entity/handle.hpp

+ 1 - 1
src/entt/entity/handle.hpp

@@ -335,7 +335,7 @@ public:
      * entity.
      */
     template<typename Other, typename... Args>
-    [[nodiscard]] operator basic_handle<Other, Args...>() const noexcept {
+    operator basic_handle<Other, Args...>() const noexcept {
         static_assert(std::is_same_v<Other, Registry> || std::is_same_v<std::remove_const_t<Other>, Registry>, "Invalid conversion between different handles");
         static_assert((sizeof...(Scope) == 0 || ((sizeof...(Args) != 0 && sizeof...(Args) <= sizeof...(Scope)) && ... && (type_list_contains_v<type_list<Scope...>, Args>))), "Invalid conversion between different handles");
         return owner ? basic_handle<Other, Args...>{*owner, entt} : basic_handle<Other, Args...>{};