Browse Source

storage:
* fixed typo in the doc
* get around msvc that also accepts invalid code (again) O.o

Michele Caini 4 years ago
parent
commit
e0abab2dc4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/entity/storage.hpp

+ 2 - 2
src/entt/entity/storage.hpp

@@ -266,7 +266,7 @@ protected:
      * @brief Exchanges the contents with those of a given storage.
      * @param base Reference to base storage to exchange the content with.
      */
-    void swap_contents(basic_sparse_set &base) override {
+    void swap_contents(basic_sparse_set<Entity, typename allocator_traits::template rebind_alloc<Entity>> &base) override {
         using std::swap;
         auto &other = static_cast<basic_storage &>(base);
         propagate_on_container_swap(bucket.first(), other.bucket.first());
@@ -316,7 +316,7 @@ protected:
 
     /**
      * @brief Erases an element from the internal packed array.
-     * @param pos A valid position of an element within the storage.
+     * @param entt A valid identifier.
      * @param ud Optional user data that are forwarded as-is to derived classes.
      */
     void in_place_pop(const Entity entt, void *ud) override {