| commit | d47600c85d26176cc7030da78f8cfc6e98bcfbbf | [log] [tgz] |
|---|---|---|
| author | Tom Tromey <tromey@adacore.com> | Wed Aug 14 11:22:58 2024 -0600 |
| committer | Tom Tromey <tromey@adacore.com> | Thu Aug 15 10:14:37 2024 -0600 |
| tree | 13954325667b4bd371453bed04c99decb1185d93 | |
| parent | 5c8f918639f1df77599c50fddfdfe23a2e3cbf35 [diff] |
Add another constructor to scoped_restore_current_language While working on something else, I noticed that this is relatively common: scoped_restore_current_language save; set_language (something); This patch adds a second constructor to scoped_restore_current_language to simplify this idiom. Reviewed-By: Tom de Vries <tdevries@suse.de>