Landing: 2633f491aeda

Project / Subsystem

gcc / text-art

Date

2026-09-26

Author

linden

Commit

2633f491aedadd71ac44f5294c0035a95a35bdfd

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
text-art
patch_id
—
commit_hash
2633f491aedadd71ac44f5294c0035a95a35bdfd
source_type
github
headline
text-art: Add rvalue overload for array2::set
tldr
Improves `text-art`'s `array2::set` by adding an overload that accepts rvalues, enabling move semantics.
author
linden
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • text-art
  • • c++
  • • move semantics
  • • library
discussion_id_link
—
bugzilla_pr
—
date
2026-09-26T00:00:00.000Z

The text-art library’s array2::set method previously only accepted const references, preventing move assignments even when an rvalue was provided. This change introduces an overload that accepts an rvalue element (element_t &&), allowing std::move operations to take effect. This is beneficial for element types that manage their own resources, such as styled_unichar which contains a std::vector, enabling more efficient assignments in contexts like canvas::paint.