mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
equals needed for test_copy_move_policies to build icpc 2016.3 (#507)
This commit is contained in:
parent
4de271027d
commit
99ddc9ac1a
@ -21,7 +21,7 @@ struct lacking_copy_ctor : public empty<lacking_copy_ctor> {
|
|||||||
lacking_copy_ctor(const lacking_copy_ctor& other) = delete;
|
lacking_copy_ctor(const lacking_copy_ctor& other) = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <> lacking_copy_ctor empty<lacking_copy_ctor>::instance_ {};
|
template <> lacking_copy_ctor empty<lacking_copy_ctor>::instance_ = {};
|
||||||
|
|
||||||
struct lacking_move_ctor : public empty<lacking_move_ctor> {
|
struct lacking_move_ctor : public empty<lacking_move_ctor> {
|
||||||
lacking_move_ctor() {}
|
lacking_move_ctor() {}
|
||||||
@ -29,7 +29,7 @@ struct lacking_move_ctor : public empty<lacking_move_ctor> {
|
|||||||
lacking_move_ctor(lacking_move_ctor&& other) = delete;
|
lacking_move_ctor(lacking_move_ctor&& other) = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <> lacking_move_ctor empty<lacking_move_ctor>::instance_ {};
|
template <> lacking_move_ctor empty<lacking_move_ctor>::instance_ = {};
|
||||||
|
|
||||||
test_initializer copy_move_policies([](py::module &m) {
|
test_initializer copy_move_policies([](py::module &m) {
|
||||||
py::class_<lacking_copy_ctor>(m, "lacking_copy_ctor")
|
py::class_<lacking_copy_ctor>(m, "lacking_copy_ctor")
|
||||||
|
Loading…
Reference in New Issue
Block a user