Skip to content

Commit 0a08045

Browse files
authored
chore: Update vendored cpp11 to 0.5.2 (#1068)
* Revert "External pointer premature release" This reverts commit d7886e3. * Revert "Protection" This reverts commit 4f4a3a8. * Revert "END_CPP11_EX()" This reverts commit aa3225d. * Revert "Add `prot` argument to `external_pointer()` constructor" This reverts commit d045ccf. * Header * Substance * Add `prot` argument to `external_pointer()` constructor r-lib/cpp11#420 This reverts commit abcae40e2aff8b1664098294959b8df743605737. * END_CPP11_EX() r-lib/cpp11#421 * Protection r-lib/cpp11#422 This reverts commit 1e181e5e5c2cf0a21906b49dafe80364c8ca3f2b. * External pointer premature release r-lib/cpp11#423 This reverts commit 1b698e533ea7c7003cb610a5f5f7e5a47966c59d.
1 parent 7c28cd2 commit 0a08045

24 files changed

+50
-50
lines changed

inst/include/cpp11.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include "cpp11/R.hpp"

inst/include/cpp11/R.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#ifdef R_INTERNALS_H_
@@ -51,7 +51,7 @@
5151
namespace cpp11 {
5252
namespace literals {
5353

54-
constexpr R_xlen_t operator"" _xl(unsigned long long int value) { return value; }
54+
constexpr R_xlen_t operator""_xl(unsigned long long int value) { return value; }
5555

5656
} // namespace literals
5757

inst/include/cpp11/altrep.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
// It would be nice to remove this since all supported versions of R have ALTREP, but

inst/include/cpp11/as.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <cmath> // for modf

inst/include/cpp11/attribute_proxy.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <initializer_list> // for initializer_list

inst/include/cpp11/data_frame.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <cstdlib> // for abs

inst/include/cpp11/declarations.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <cstring>

inst/include/cpp11/doubles.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <algorithm> // for min, tranform

inst/include/cpp11/environment.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <string> // for string, basic_string

inst/include/cpp11/external_pointer.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <cstddef> // for nullptr_t, NULL

inst/include/cpp11/function.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <string.h> // for strcmp

inst/include/cpp11/integers.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <algorithm> // for min

inst/include/cpp11/list.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <initializer_list> // for initializer_list

inst/include/cpp11/list_of.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <string> // for string, basic_string

inst/include/cpp11/logicals.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <algorithm> // for min

inst/include/cpp11/matrix.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <iterator>

inst/include/cpp11/named_arg.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <stddef.h> // for size_t
@@ -41,7 +41,7 @@ class named_arg {
4141

4242
namespace literals {
4343

44-
inline named_arg operator"" _nm(const char* name, std::size_t) { return named_arg(name); }
44+
inline named_arg operator""_nm(const char* name, std::size_t) { return named_arg(name); }
4545

4646
} // namespace literals
4747

inst/include/cpp11/protect.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <csetjmp> // for longjmp, setjmp, jmp_buf

inst/include/cpp11/r_bool.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <limits> // for numeric_limits

inst/include/cpp11/r_string.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <string> // for string, basic_string, operator==

inst/include/cpp11/r_vector.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <stddef.h> // for ptrdiff_t, size_t

inst/include/cpp11/raws.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <algorithm> // for min

inst/include/cpp11/sexp.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <stddef.h> // for size_t

inst/include/cpp11/strings.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// cpp11 version: 0.5.1
2-
// vendored on: 2024-12-07
1+
// cpp11 version: 0.5.2
2+
// vendored on: 2025-03-09
33
#pragma once
44

55
#include <initializer_list> // for initializer_list

0 commit comments

Comments
 (0)