Skip to content
#

cxx

Here are 387 public repositories matching this topic...

thrust
scullionw
scullionw commented Apr 26, 2021

Expected Behavior

I can pass std::vector<int32_t>, but the the c++ library I want to use uses int, not int32_t

std::vector<int> build_array() {
    auto values = std::vector<int> {1,2,3,4,5};
    for (auto& v: values) v = v * 2;
    return values;
}

Not sure how to get around this since I can't impl VectorElement for c_int due to the orphan rule? There must b

Improve this page

Add a description, image, and links to the cxx topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the cxx topic, visit your repo's landing page and select "manage topics."

Learn more