Sfoglia il codice sorgente

resource: noexcept-ness review

Michele Caini 1 anno fa
parent
commit
13223125d7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/entt/resource/resource.hpp

+ 1 - 1
src/entt/resource/resource.hpp

@@ -120,7 +120,7 @@ public:
      * @brief Exchanges the content with that of a given resource.
      * @param other Resource to exchange the content with.
      */
-    void swap(resource &other) {
+    void swap(resource &other) noexcept {
         using std::swap;
         swap(value, other.value);
     }