|
1 | 1 | # cpp11 (development version)
|
2 | 2 |
|
3 |
| -* read-only matrix accessors are now marked const (#234) |
| 3 | +## New Features |
| 4 | + |
| 5 | +* New opt-in message formatting with the {fmt} C++ library for `cpp11::messages()` `cpp11::stop()` and `cpp11::warning()`. |
| 6 | + Set the `CPP11_USE_FMT` macro to use this feature in your package. (@sbearrows, #169, #208) |
| 7 | +* New `as_double()` and `as_integer()` methods to coerce integers to doubles and doubles to integers to doubles (@sbearrows, #46) |
| 8 | +* `cpp11::matrix` iterators can now be used either row-wise or column-wise (the default) depending on the user's choice (@alyst, #229) |
| 9 | + |
| 10 | +## Improvements and fixes |
| 11 | + |
| 12 | +* Read-only matrix accessors are now marked const (#234) |
4 | 13 | * `writable::r_vector` default constructors now return a 0 length vector when converted to `SEXP` (#166)
|
5 |
| -* read-only `r_vector` constructors now disallow implicit construction with named arguments (#237) |
6 |
| -* read-only `r_vector.attr()` methods now return const objects, so it is a compile time error to try to assign to them (#237) |
7 |
| -* Allow `cpp11::matrix` to be accessed either row-wise or column-wise (the default) depending on the user's choice (@alyst, #229) |
| 14 | +* Read-only `r_vector` constructors now disallow implicit construction with named arguments (#237) |
| 15 | +* Read-only `r_vector.attr()` methods now return const objects, so it is a compile time error to try to assign to them (#237) |
8 | 16 | * Fixed `+` and `+=` operators of `r_vector::[const_]iterator` to conform the *iterators* concept:
|
9 | 17 | `+=` updates the iterator, and `+` returns the updated copy, while keeping the original unchanged (@alyst, #231)
|
10 | 18 | * Remove undefined behavior when constructing global `cpp11::sexp`s (#224)
|
11 |
| -* `cpp_register()` now includes `attribute_visible` in the init function, so packages compiled with `C_VISIBILITY` will find the init function. |
12 |
| -* added `as_double()` and `as_integer()` method to coerce integers to doubles and doubles to integers to doubles (@sbearrows, #46) |
13 | 19 | * Removed redundant `.Call calls` in cpp11.cpp file (@sbearrows, #170)
|
14 |
| -* Allow cpp11 decorators of the form `cpp11::linking_to` (@sbearrows, #193) |
15 | 20 | * Error messages now output original file name rather than the temporary file name (@sbearrows, #194)
|
| 21 | +* `cpp_register()` now includes `attribute_visible` in the init function, so packages compiled with `C_VISIBILITY` will find the init function. |
16 | 22 | * Fixed bug when running `cpp_source()` on the same file more than once (@sbearrows, #202)
|
| 23 | +* Allow cpp11 decorators of the form `cpp11::linking_to` (@sbearrows, #193) |
17 | 24 | * Removed internal instances of `cpp11::stop()` and replaced with C++ exceptions (@sbearrows, #203)
|
18 |
| -* Added `cpp11::messages()` feature with {fmt} library formatting for non-error messages (@sbearrows, #208) |
19 | 25 | * Names of named lists are now resized along with the list elements (@sbearrows, #206)
|
20 |
| -* Added optionally formatting to `stop()` and `warning()` using {fmt} library (@sbearrows, #169) |
21 | 26 |
|
22 | 27 | # cpp11 0.3.1
|
23 | 28 |
|
|
34 | 39 | ## Major fixes
|
35 | 40 | * Memory no longer inadvertently leaks when move constructing vectors (#173)
|
36 | 41 |
|
37 |
| -## minor improvements and fixes |
| 42 | +## Minor improvements and fixes |
38 | 43 | * Incorrectly formatted cpp11 decorators now output a more informative error message (@sbearrows, #127)
|
39 | 44 | * Generated registration code now uses C collation to avoid spurious changes from `tools::package_native_routine_registration_skeleton()` (@sbearrows, #171)
|
40 | 45 | * Makevars files which include filenames now handle spaces in paths properly (@klmr, #160)
|
|
0 commit comments