File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,16 @@ PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>);
15
15
void init_issues (py::module &m) {
16
16
py::module m2 = m.def_submodule (" issues" );
17
17
18
+ #if !defined(_MSC_VER)
19
+ // Visual Studio 2015 currently cannot compile this test
20
+ // (see the comment in type_caster_base::make_copy_constructor)
21
+ // #70 compilation issue if operator new is not public
22
+ class NonConstructible { private: void *operator new (size_t bytes) throw (); };
23
+ py::class_<NonConstructible>(m, " Foo" );
24
+ m.def (" getstmt" , []() -> NonConstructible * { return nullptr ; },
25
+ py::return_value_policy::reference);
26
+ #endif
27
+
18
28
// #137: const char* isn't handled properly
19
29
m2.def (" print_cchar" , [](const char *string) { std::cout << string << std::endl; });
20
30
You can’t perform that action at this time.
0 commit comments