-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Description
In the documentation you describe how to create a named list:
#include <cpp11.hpp>
[[cpp11::register]]
cpp11::list foo_push() {
using namespace cpp11::literals;
cpp11::writable::list x;
x.push_back({"foo"_nm = 1});
return x;
}Is it possible to create an unnamed list? I've tried something like below but it does not work, and I can't find anything in the documentation about this.
#include <cpp11.hpp>
[[cpp11::register]]
cpp11::list foo_push() {
using namespace cpp11::literals;
cpp11::writable::list x;
x.push_back(1);
return x;
}pachadotdev
Metadata
Metadata
Assignees
Labels
No labels