Skip to content

Commit e3fc678

Browse files
committed
1 parent 3a4e62a commit e3fc678

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

4.x/changelog/index.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,17 @@
764764
</label>
765765
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
766766

767+
<li class="md-nav__item">
768+
<a href="#491-unreleased" class="md-nav__link">
769+
<span class="md-ellipsis">
770+
771+
4.9.1 (unreleased)
772+
773+
</span>
774+
</a>
775+
776+
</li>
777+
767778
<li class="md-nav__item">
768779
<a href="#490-2026-01-01" class="md-nav__link">
769780
<span class="md-ellipsis">
@@ -3888,6 +3899,19 @@
38883899

38893900

38903901
<h1 id="changelog">Changelog<a class="headerlink" href="#changelog" title="Permanent link">&para;</a></h1>
3902+
<h2 id="491-unreleased">4.9.1 (unreleased)<a class="headerlink" href="#491-unreleased" title="Permanent link">&para;</a></h2>
3903+
<p>This release focuses on improving memory management for STL containers and attribute setters.</p>
3904+
<p>Enhancements:
3905+
* Support <code>takeOwnership</code> and <code>keepAlive</code> when setting attributes via <code>Arg("value").takeOwnership()</code> and <code>Arg("value").keepAlive()</code>
3906+
* Add <code>Arg</code> parameter names to all STL container methods for keyword argument support
3907+
* Add <code>keepAlive</code> support for STL container operations (vector push/insert, set insert, map/multimap store)
3908+
* Add <code>keepAlive</code> for map/unordered_map/multimap keys to prevent GC of pointer-type keys</p>
3909+
<p>Bug Fixes:
3910+
* Fix error when multiple overloaded methods take different types of vectors
3911+
* Fix type unknown errors when using <code>std::shared_ptr</code> with g++
3912+
* Fix CMake <code>_Ruby_DLEXT</code> variable type (string, not path)
3913+
* Fix crash caused by static variable in keepAlive implementation
3914+
* Fix incorrect attribute overloading behavior</p>
38913915
<h2 id="490-2026-01-01">4.9.0 (2026-01-01)<a class="headerlink" href="#490-2026-01-01" title="Permanent link">&para;</a></h2>
38923916
<p>This release revamps smart pointer support for <code>std::shared_ptr</code> and <code>std::unique_ptr</code>.</p>
38933917
<p>Rice now always creates wrapper classes for smart pointers under the <code>Std</code> module (e.g., <code>Std::SharedPtr≺MyClass≻</code>, <code>Std::UniquePtr≺MyClass≻</code>). These wrapper classes expose methods like <code>empty?</code>, <code>get</code>, <code>swap</code>, and for shared_ptr, <code>use_count</code>. Methods defined on the managed type are automatically forwarded to the wrapper class using Ruby's <code>Forwardable</code> module.</p>

4.x/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)