Closed
Description
The following code fails to compile (tested with VS 2015 Update 3 and Apple LLVM version 8.0.0, which should be clang ~3.8):
class El2
{
public:
El2(const El2&) = delete;
El2& operator=(const El2&) = delete;
};
py::bind_vector<std::vector<El>>(m, "VectorEl");
This is because the tests in
pybind11/include/pybind11/cast.h
Lines 366 to 382 in fe40dfe
See http://stackoverflow.com/questions/18404108/issue-with-is-copy-constructible for some discussion, and a possible workaround, about that topic.
Please note that this may be of special interest because std::vector<std::unique_ptr<T>>
is never copy-constructible but may be a common use case.
Metadata
Metadata
Assignees
Labels
No labels