Skip to content

Commit 037163d

Browse files
committed
NEWS bullet
1 parent ebd881c commit 037163d

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

NEWS.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# cpp11 (development version)
22

3+
* The approach for the protection list managed by cpp11 has been tweaked
4+
slightly. In 0.4.6, we changed to an approach that creates one protection list
5+
per compilation unit, but we now believe we've found an approach that is
6+
guaranteed by the C++ standard to create one protection list per package,
7+
which makes slightly more sense and still has all the benefits of the reduced
8+
maintanence burden mentioned in the 0.4.6 news bullet (#364).
9+
10+
A side effect of this new approach is that the `preserved` object exposed
11+
through `protect.hpp` no longer exists. We don't believe that anyone was using
12+
this.
13+
314
* Dropped support for gcc 4.8, mainly an issue for extremely old CentOS 7
415
systems which used that as their default compiler. As of June 2024, CentOS 7
516
is past its Vendor end of support date and therefore also out of scope for
@@ -16,7 +27,7 @@
1627
beyond) the tidyverse standard of supporting the previous 5 minor releases of
1728
R. It also ensures that `R_UnwindProtect()` is available to avoid C++ memory
1829
leaks (#332).
19-
30+
2031
* `cpp11::preserved.release_all()` has been removed. This was intended to
2132
support expert developers on R <3.5.0 when cpp11 used a global protection
2233
list. Since cpp11 no longer uses a global protection list and requires R
@@ -35,7 +46,7 @@
3546
than it is worth and is very hard to use safely. For more information, see the
3647
new `vignette("FAQ")` section titled "Should I call `cpp11::unwind_protect()`
3748
manually?" (#327).
38-
49+
3950
* The features and bug fixes from cpp11 0.4.4 have been added back in.
4051

4152
# cpp11 0.4.5
@@ -46,7 +57,7 @@
4657

4758
# cpp11 0.4.4
4859

49-
* Davis Vaughan is now the maintainer.
60+
* Davis Vaughan is now the maintainer.
5061

5162
* `as_doubles()` and `as_integers()` now propagate missing values correctly
5263
(#265, #319).
@@ -56,7 +67,7 @@
5667
* Minor performance improvements to the cpp11 protect code. (@kevinushey)
5768

5869
* `cpp_register()` gains an argument `extension=` governing the file extension of
59-
the `src/cpp11` file. By default it's `.cpp`, but `.cc` is now supported
70+
the `src/cpp11` file. By default it's `.cpp`, but `.cc` is now supported
6071
as well (#292, @MichaelChirico)
6172

6273
# cpp11 0.4.3
@@ -65,7 +76,7 @@
6576
better align with changes in those workflows and the latest version of R
6677
(#279).
6778

68-
* `cpp_source()` errors on non-existent file (#261).
79+
* `cpp_source()` errors on non-existent file (#261).
6980

7081
* `cpp_register()` is quiet by default when R is non interactive (#289).
7182

@@ -83,7 +94,7 @@
8394

8495
## New Features
8596

86-
* New opt-in message formatting with the {fmt} C++ library for `cpp11::messages()` `cpp11::stop()` and `cpp11::warning()`.
97+
* New opt-in message formatting with the {fmt} C++ library for `cpp11::messages()` `cpp11::stop()` and `cpp11::warning()`.
8798
Set the `CPP11_USE_FMT` macro to use this feature in your package. (@sbearrows, #169, #208)
8899
* New `as_double()` and `as_integer()` methods to coerce integers to doubles and doubles to integers to doubles (@sbearrows, #46)
89100
* `cpp11::matrix` iterators can now be used either row-wise or column-wise (the default) depending on the user's choice (@alyst, #229)

0 commit comments

Comments
 (0)