blob: 4c59a1b122dff038d591f8d8b1b21995d5be9f89 [file] [log] [blame]
Wenzel Jakob17cdb062016-03-10 13:24:10 +01001/*
Dean Moldovana0c1ccf2016-08-12 13:50:00 +02002 tests/test_issues.cpp -- collection of testcases for miscellaneous issues
Wenzel Jakob17cdb062016-03-10 13:24:10 +01003
Wenzel Jakob8cb6cb32016-04-17 20:21:41 +02004 Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>
Wenzel Jakob17cdb062016-03-10 13:24:10 +01005
6 All rights reserved. Use of this source code is governed by a
7 BSD-style license that can be found in the LICENSE file.
8*/
9
Dean Moldovana0c1ccf2016-08-12 13:50:00 +020010#include "pybind11_tests.h"
11#include "constructor_stats.h"
Wenzel Jakobf54ded72016-04-20 17:00:57 +020012#include <pybind11/stl.h>
Jason Rhinelander1b05ce52016-08-09 17:57:59 -040013#include <pybind11/operators.h>
Wenzel Jakobfe40dfe2016-11-07 15:59:01 +010014#include <pybind11/complex.h>
Wenzel Jakobd2b628b2016-04-30 23:02:39 +020015
Jason Rhinelander3f589372016-08-07 13:05:26 -040016#define TRACKERS(CLASS) CLASS() { print_default_created(this); } ~CLASS() { print_destroyed(this); }
17struct NestABase { int value = -2; TRACKERS(NestABase) };
18struct NestA : NestABase { int value = 3; NestA& operator+=(int i) { value += i; return *this; } TRACKERS(NestA) };
19struct NestB { NestA a; int value = 4; NestB& operator-=(int i) { value -= i; return *this; } TRACKERS(NestB) };
20struct NestC { NestB b; int value = 5; NestC& operator*=(int i) { value *= i; return *this; } TRACKERS(NestC) };
21
Wenzel Jakob382484a2016-09-10 15:28:37 +090022/// #393
23class OpTest1 {};
24class OpTest2 {};
25
26OpTest1 operator+(const OpTest1 &, const OpTest1 &) {
27 py::print("Add OpTest1 with OpTest1");
28 return OpTest1();
29}
30OpTest2 operator+(const OpTest2 &, const OpTest2 &) {
31 py::print("Add OpTest2 with OpTest2");
32 return OpTest2();
33}
34OpTest2 operator+(const OpTest2 &, const OpTest1 &) {
35 py::print("Add OpTest2 with OpTest1");
36 return OpTest2();
37}
38
Jason Rhinelander6873c202016-10-24 21:58:22 -040039// #461
40class Dupe1 {
41public:
42 Dupe1(int v) : v_{v} {}
43 int get_value() const { return v_; }
44private:
45 int v_;
46};
47class Dupe2 {};
48class Dupe3 {};
49class DupeException : public std::runtime_error {};
50
Jason Rhinelanderc07ec312016-11-06 13:12:48 -050051// #478
52template <typename T> class custom_unique_ptr {
53public:
54 custom_unique_ptr() { print_default_created(this); }
55 custom_unique_ptr(T *ptr) : _ptr{ptr} { print_created(this, ptr); }
56 custom_unique_ptr(custom_unique_ptr<T> &&move) : _ptr{move._ptr} { move._ptr = nullptr; print_move_created(this); }
57 custom_unique_ptr &operator=(custom_unique_ptr<T> &&move) { print_move_assigned(this); if (_ptr) destruct_ptr(); _ptr = move._ptr; move._ptr = nullptr; return *this; }
58 custom_unique_ptr(const custom_unique_ptr<T> &) = delete;
59 void operator=(const custom_unique_ptr<T> &copy) = delete;
60 ~custom_unique_ptr() { print_destroyed(this); if (_ptr) destruct_ptr(); }
61private:
62 T *_ptr = nullptr;
63 void destruct_ptr() { delete _ptr; }
64};
65PYBIND11_DECLARE_HOLDER_TYPE(T, custom_unique_ptr<T>);
66
Jason Rhinelanderf2004932016-11-25 07:06:18 -050067/// Issue #528: templated constructor
68struct TplConstrClass {
69 template <typename T> TplConstrClass(const T &arg) : str{arg} {}
70 std::string str;
71 bool operator==(const TplConstrClass &t) const { return t.str == str; }
72};
73namespace std {
74template <> struct hash<TplConstrClass> { size_t operator()(const TplConstrClass &t) const { return std::hash<std::string>()(t.str); } };
75}
Jason Rhinelanderc07ec312016-11-06 13:12:48 -050076
77
Wenzel Jakob17cdb062016-03-10 13:24:10 +010078void init_issues(py::module &m) {
79 py::module m2 = m.def_submodule("issues");
80
Wenzel Jakob9059bd82016-05-01 10:39:45 +020081#if !defined(_MSC_VER)
82 // Visual Studio 2015 currently cannot compile this test
83 // (see the comment in type_caster_base::make_copy_constructor)
84 // #70 compilation issue if operator new is not public
85 class NonConstructible { private: void *operator new(size_t bytes) throw(); };
86 py::class_<NonConstructible>(m, "Foo");
Wenzel Jakobbd57eb42016-05-01 14:42:20 +020087 m2.def("getstmt", []() -> NonConstructible * { return nullptr; },
Wenzel Jakob9059bd82016-05-01 10:39:45 +020088 py::return_value_policy::reference);
89#endif
90
Wenzel Jakob17cdb062016-03-10 13:24:10 +010091 // #137: const char* isn't handled properly
Dean Moldovan665e8802016-08-12 22:28:31 +020092 m2.def("print_cchar", [](const char *s) { return std::string(s); });
Wenzel Jakobd3349af2016-03-26 23:04:10 +010093
94 // #150: char bindings broken
Dean Moldovan665e8802016-08-12 22:28:31 +020095 m2.def("print_char", [](char c) { return std::string(1, c); });
Wenzel Jakobf5c154a2016-04-11 18:13:08 +020096
97 // #159: virtual function dispatch has problems with similar-named functions
Dean Moldovan665e8802016-08-12 22:28:31 +020098 struct Base { virtual std::string dispatch() const {
Wenzel Jakobd2b628b2016-04-30 23:02:39 +020099 /* for some reason MSVC2015 can't compile this if the function is pure virtual */
Dean Moldovan665e8802016-08-12 22:28:31 +0200100 return {};
Wenzel Jakobd2b628b2016-04-30 23:02:39 +0200101 }; };
Wenzel Jakobe7074972016-04-30 22:44:00 +0200102
103 struct DispatchIssue : Base {
Dean Moldovan665e8802016-08-12 22:28:31 +0200104 virtual std::string dispatch() const {
105 PYBIND11_OVERLOAD_PURE(std::string, Base, dispatch, /* no arguments */);
Wenzel Jakobe7074972016-04-30 22:44:00 +0200106 }
107 };
108
Jason Rhinelander5fffe202016-09-06 12:17:06 -0400109 py::class_<Base, DispatchIssue>(m2, "DispatchIssue")
Wenzel Jakobf54ded72016-04-20 17:00:57 +0200110 .def(py::init<>())
Wenzel Jakobf5c154a2016-04-11 18:13:08 +0200111 .def("dispatch", &Base::dispatch);
112
Dean Moldovan665e8802016-08-12 22:28:31 +0200113 m2.def("dispatch_issue_go", [](const Base * b) { return b->dispatch(); });
Wenzel Jakobe7074972016-04-30 22:44:00 +0200114
115 struct Placeholder { int i; Placeholder(int i) : i(i) { } };
Wenzel Jakobf54ded72016-04-20 17:00:57 +0200116
117 py::class_<Placeholder>(m2, "Placeholder")
Wenzel Jakobdbe43ff2016-04-21 12:21:14 +0200118 .def(py::init<int>())
Wenzel Jakobf54ded72016-04-20 17:00:57 +0200119 .def("__repr__", [](const Placeholder &p) { return "Placeholder[" + std::to_string(p.i) + "]"; });
120
121 // #171: Can't return reference wrappers (or STL datastructures containing them)
Wenzel Jakob85f07e12016-09-04 23:00:49 +0900122 m2.def("return_vec_of_reference_wrapper", [](std::reference_wrapper<Placeholder> p4) {
Wenzel Jakobf54ded72016-04-20 17:00:57 +0200123 Placeholder *p1 = new Placeholder{1};
124 Placeholder *p2 = new Placeholder{2};
Wenzel Jakobdbe43ff2016-04-21 12:21:14 +0200125 Placeholder *p3 = new Placeholder{3};
Wenzel Jakobf54ded72016-04-20 17:00:57 +0200126 std::vector<std::reference_wrapper<Placeholder>> v;
127 v.push_back(std::ref(*p1));
128 v.push_back(std::ref(*p2));
129 v.push_back(std::ref(*p3));
Wenzel Jakobdbe43ff2016-04-21 12:21:14 +0200130 v.push_back(p4);
Wenzel Jakobf54ded72016-04-20 17:00:57 +0200131 return v;
132 });
Wenzel Jakob6ca6e822016-04-27 14:33:52 +0200133
134 // #181: iterator passthrough did not compile
135 m2.def("iterator_passthrough", [](py::iterator s) -> py::iterator {
136 return py::make_iterator(std::begin(s), std::end(s));
137 });
Wenzel Jakobd2b628b2016-04-30 23:02:39 +0200138
139 // #187: issue involving std::shared_ptr<> return value policy & garbage collection
140 struct ElementBase { virtual void foo() { } /* Force creation of virtual table */ };
141 struct ElementA : ElementBase {
142 ElementA(int v) : v(v) { }
143 int value() { return v; }
144 int v;
145 };
146
147 struct ElementList {
148 void add(std::shared_ptr<ElementBase> e) { l.push_back(e); }
149 std::vector<std::shared_ptr<ElementBase>> l;
150 };
151
152 py::class_<ElementBase, std::shared_ptr<ElementBase>> (m2, "ElementBase");
153
Jason Rhinelander6b52c832016-09-06 12:27:00 -0400154 py::class_<ElementA, ElementBase, std::shared_ptr<ElementA>>(m2, "ElementA")
Wenzel Jakobd2b628b2016-04-30 23:02:39 +0200155 .def(py::init<int>())
156 .def("value", &ElementA::value);
157
158 py::class_<ElementList, std::shared_ptr<ElementList>>(m2, "ElementList")
159 .def(py::init<>())
160 .def("add", &ElementList::add)
Wenzel Jakob85f07e12016-09-04 23:00:49 +0900161 .def("get", [](ElementList &el) {
Wenzel Jakobd2b628b2016-04-30 23:02:39 +0200162 py::list list;
163 for (auto &e : el.l)
164 list.append(py::cast(e));
165 return list;
166 });
Wenzel Jakobbd57eb42016-05-01 14:42:20 +0200167
168 // (no id): should not be able to pass 'None' to a reference argument
Dean Moldovan99dbdc12016-08-19 13:45:36 +0200169 m2.def("get_element", [](ElementA &el) { return el.value(); });
Wenzel Jakob3f200fa2016-05-17 15:35:29 +0200170
171 // (no id): don't cast doubles to ints
172 m2.def("expect_float", [](float f) { return f; });
173 m2.def("expect_int", [](int i) { return i; });
Wenzel Jakob86d825f2016-05-26 13:19:27 +0200174
Wenzel Jakob38d8b8c2016-05-31 09:53:28 +0200175 try {
176 py::class_<Placeholder>(m2, "Placeholder");
177 throw std::logic_error("Expected an exception!");
Dean Moldovanf2b36c22016-06-01 23:03:10 +0200178 } catch (std::runtime_error &) {
Wenzel Jakob38d8b8c2016-05-31 09:53:28 +0200179 /* All good */
180 }
Jason Rhinelander4e45e182016-07-17 17:43:00 -0400181
182 // Issue #283: __str__ called on uninitialized instance when constructor arguments invalid
183 class StrIssue {
184 public:
185 StrIssue(int i) : val{i} {}
186 StrIssue() : StrIssue(-1) {}
187 int value() const { return val; }
188 private:
189 int val;
190 };
191 py::class_<StrIssue> si(m2, "StrIssue");
192 si .def(py::init<int>())
193 .def(py::init<>())
Dean Moldovan99dbdc12016-08-19 13:45:36 +0200194 .def("__str__", [](const StrIssue &si) { return "StrIssue[" + std::to_string(si.value()) + "]"; })
Jason Rhinelander4e45e182016-07-17 17:43:00 -0400195 ;
196
Jason Rhinelander1b05ce52016-08-09 17:57:59 -0400197 // Issue #328: first member in a class can't be used in operators
Jason Rhinelanderf2ecd892016-08-10 12:08:04 -0400198 py::class_<NestABase>(m2, "NestABase").def(py::init<>()).def_readwrite("value", &NestABase::value);
199 py::class_<NestA>(m2, "NestA").def(py::init<>()).def(py::self += int())
200 .def("as_base", [](NestA &a) -> NestABase& { return (NestABase&) a; }, py::return_value_policy::reference_internal);
Jason Rhinelander1b05ce52016-08-09 17:57:59 -0400201 py::class_<NestB>(m2, "NestB").def(py::init<>()).def(py::self -= int()).def_readwrite("a", &NestB::a);
202 py::class_<NestC>(m2, "NestC").def(py::init<>()).def(py::self *= int()).def_readwrite("b", &NestC::b);
Dean Moldovan665e8802016-08-12 22:28:31 +0200203 m2.def("get_NestA", [](const NestA &a) { return a.value; });
204 m2.def("get_NestB", [](const NestB &b) { return b.value; });
205 m2.def("get_NestC", [](const NestC &c) { return c.value; });
Wenzel Jakobc84b37b2016-09-07 00:47:17 +0900206
207 // Issue 389: r_v_p::move should fall-through to copy on non-movable objects
208 class MoveIssue1 {
209 public:
210 MoveIssue1(int v) : v{v} {}
Dean Moldovan81511be2016-09-07 00:50:10 +0200211 MoveIssue1(const MoveIssue1 &c) { v = c.v; }
Wenzel Jakobc84b37b2016-09-07 00:47:17 +0900212 MoveIssue1(MoveIssue1 &&) = delete;
213 int v;
214 };
215 class MoveIssue2 {
216 public:
217 MoveIssue2(int v) : v{v} {}
218 MoveIssue2(MoveIssue2 &&) = default;
219 int v;
220 };
221 py::class_<MoveIssue1>(m2, "MoveIssue1").def(py::init<int>()).def_readwrite("value", &MoveIssue1::v);
222 py::class_<MoveIssue2>(m2, "MoveIssue2").def(py::init<int>()).def_readwrite("value", &MoveIssue2::v);
223 m2.def("get_moveissue1", [](int i) -> MoveIssue1 * { return new MoveIssue1(i); }, py::return_value_policy::move);
224 m2.def("get_moveissue2", [](int i) { return MoveIssue2(i); }, py::return_value_policy::move);
Jason Rhinelander56f71772016-09-07 13:32:49 -0400225
Jason Rhinelander9c6859e2016-09-08 11:03:08 -0400226 // Issues 392/397: overridding reference-returning functions
Jason Rhinelander56f71772016-09-07 13:32:49 -0400227 class OverrideTest {
228 public:
Jason Rhinelander9c6859e2016-09-08 11:03:08 -0400229 struct A { std::string value = "hi"; };
230 std::string v;
Jason Rhinelander56f71772016-09-07 13:32:49 -0400231 A a;
Jason Rhinelander9c6859e2016-09-08 11:03:08 -0400232 explicit OverrideTest(const std::string &v) : v{v} {}
233 virtual std::string str_value() { return v; }
234 virtual std::string &str_ref() { return v; }
Jason Rhinelander56f71772016-09-07 13:32:49 -0400235 virtual A A_value() { return a; }
236 virtual A &A_ref() { return a; }
237 };
238 class PyOverrideTest : public OverrideTest {
239 public:
240 using OverrideTest::OverrideTest;
Jason Rhinelander9c6859e2016-09-08 11:03:08 -0400241 std::string str_value() override { PYBIND11_OVERLOAD(std::string, OverrideTest, str_value); }
Jason Rhinelanderc03db9b2016-09-07 13:38:32 -0400242 // Not allowed (uncommenting should hit a static_assert failure): we can't get a reference
243 // to a python numeric value, since we only copy values in the numeric type caster:
Jason Rhinelander9c6859e2016-09-08 11:03:08 -0400244// std::string &str_ref() override { PYBIND11_OVERLOAD(std::string &, OverrideTest, str_ref); }
245 // But we can work around it like this:
246 private:
247 std::string _tmp;
248 std::string str_ref_helper() { PYBIND11_OVERLOAD(std::string, OverrideTest, str_ref); }
249 public:
250 std::string &str_ref() override { return _tmp = str_ref_helper(); }
251
Jason Rhinelander56f71772016-09-07 13:32:49 -0400252 A A_value() override { PYBIND11_OVERLOAD(A, OverrideTest, A_value); }
253 A &A_ref() override { PYBIND11_OVERLOAD(A &, OverrideTest, A_ref); }
254 };
255 py::class_<OverrideTest::A>(m2, "OverrideTest_A")
256 .def_readwrite("value", &OverrideTest::A::value);
257 py::class_<OverrideTest, PyOverrideTest>(m2, "OverrideTest")
Jason Rhinelander9c6859e2016-09-08 11:03:08 -0400258 .def(py::init<const std::string &>())
259 .def("str_value", &OverrideTest::str_value)
260// .def("str_ref", &OverrideTest::str_ref)
Jason Rhinelander56f71772016-09-07 13:32:49 -0400261 .def("A_value", &OverrideTest::A_value)
262 .def("A_ref", &OverrideTest::A_ref);
Jason Rhinelanderc03db9b2016-09-07 13:38:32 -0400263
Wenzel Jakob382484a2016-09-10 15:28:37 +0900264 /// Issue 393: need to return NotSupported to ensure correct arithmetic operator behavior
265 py::class_<OpTest1>(m2, "OpTest1")
266 .def(py::init<>())
267 .def(py::self + py::self);
268
269 py::class_<OpTest2>(m2, "OpTest2")
270 .def(py::init<>())
271 .def(py::self + py::self)
272 .def("__add__", [](const OpTest2& c2, const OpTest1& c1) { return c2 + c1; })
273 .def("__radd__", [](const OpTest2& c2, const OpTest1& c1) { return c2 + c1; });
Wenzel Jakobb212f6c2016-09-10 16:00:50 +0900274
275 // Issue 388: Can't make iterators via make_iterator() with different r/v policies
276 static std::vector<int> list = { 1, 2, 3 };
277 m2.def("make_iterator_1", []() { return py::make_iterator<py::return_value_policy::copy>(list); });
278 m2.def("make_iterator_2", []() { return py::make_iterator<py::return_value_policy::automatic>(list); });
Jason Rhinelander6873c202016-10-24 21:58:22 -0400279
280 static std::vector<std::string> nothrows;
281 // Issue 461: registering two things with the same name:
282 py::class_<Dupe1>(m2, "Dupe1")
283 .def("get_value", &Dupe1::get_value)
284 ;
285 m2.def("dupe1_factory", [](int v) { return new Dupe1(v); });
286
287 py::class_<Dupe2>(m2, "Dupe2");
288 py::exception<DupeException>(m2, "DupeException");
289
290 try {
291 m2.def("Dupe1", [](int v) { return new Dupe1(v); });
292 nothrows.emplace_back("Dupe1");
293 }
294 catch (std::runtime_error &) {}
295 try {
296 py::class_<Dupe3>(m2, "dupe1_factory");
297 nothrows.emplace_back("dupe1_factory");
298 }
299 catch (std::runtime_error &) {}
300 try {
301 py::exception<Dupe3>(m2, "Dupe2");
302 nothrows.emplace_back("Dupe2");
303 }
304 catch (std::runtime_error &) {}
305 try {
306 m2.def("DupeException", []() { return 30; });
307 nothrows.emplace_back("DupeException1");
308 }
309 catch (std::runtime_error &) {}
310 try {
311 py::class_<DupeException>(m2, "DupeException");
312 nothrows.emplace_back("DupeException2");
313 }
314 catch (std::runtime_error &) {}
315 m2.def("dupe_exception_failures", []() {
316 py::list l;
317 for (auto &e : nothrows) l.append(py::cast(e));
318 return l;
319 });
Wenzel Jakobbd560ac2016-11-03 11:53:35 +0100320
321 /// Issue #471: shared pointer instance not dellocated
322 class SharedChild : public std::enable_shared_from_this<SharedChild> {
323 public:
324 SharedChild() { print_created(this); }
325 ~SharedChild() { print_destroyed(this); }
326 };
327
328 class SharedParent {
329 public:
330 SharedParent() : child(std::make_shared<SharedChild>()) { }
331 const SharedChild &get_child() const { return *child; }
332
333 private:
334 std::shared_ptr<SharedChild> child;
335 };
336
337 py::class_<SharedChild, std::shared_ptr<SharedChild>>(m, "SharedChild");
338 py::class_<SharedParent, std::shared_ptr<SharedParent>>(m, "SharedParent")
339 .def(py::init<>())
340 .def("get_child", &SharedParent::get_child, py::return_value_policy::reference);
Jason Rhinelanderc07ec312016-11-06 13:12:48 -0500341
342 /// Issue/PR #478: unique ptrs constructed and freed without destruction
343 class SpecialHolderObj {
344 public:
345 int val = 0;
346 SpecialHolderObj *ch = nullptr;
347 SpecialHolderObj(int v, bool make_child = true) : val{v}, ch{make_child ? new SpecialHolderObj(val+1, false) : nullptr}
348 { print_created(this, val); }
349 ~SpecialHolderObj() { delete ch; print_destroyed(this); }
350 SpecialHolderObj *child() { return ch; }
351 };
352
353 py::class_<SpecialHolderObj, custom_unique_ptr<SpecialHolderObj>>(m, "SpecialHolderObj")
354 .def(py::init<int>())
355 .def("child", &SpecialHolderObj::child, pybind11::return_value_policy::reference_internal)
356 .def_readwrite("val", &SpecialHolderObj::val)
357 .def_static("holder_cstats", &ConstructorStats::get<custom_unique_ptr<SpecialHolderObj>>,
Wenzel Jakobfe40dfe2016-11-07 15:59:01 +0100358 py::return_value_policy::reference);
Jason Rhinelander52f4be82016-09-03 14:54:22 -0400359
Wenzel Jakobfe40dfe2016-11-07 15:59:01 +0100360 /// Issue #484: number conversion generates unhandled exceptions
361 m2.def("test_complex", [](float x) { py::print("{}"_s.format(x)); });
362 m2.def("test_complex", [](std::complex<float> x) { py::print("({}, {})"_s.format(x.real(), x.imag())); });
Wenzel Jakob7c2461e2016-11-20 05:26:02 +0100363
364 /// Issue #511: problem with inheritance + overwritten def_static
365 struct MyBase {
366 static std::unique_ptr<MyBase> make() {
367 return std::unique_ptr<MyBase>(new MyBase());
368 }
369 };
370
371 struct MyDerived : MyBase {
372 static std::unique_ptr<MyDerived> make() {
373 return std::unique_ptr<MyDerived>(new MyDerived());
374 }
375 };
376
377 py::class_<MyBase>(m2, "MyBase")
378 .def_static("make", &MyBase::make);
379
380 py::class_<MyDerived, MyBase>(m2, "MyDerived")
381 .def_static("make", &MyDerived::make)
382 .def_static("make2", &MyDerived::make);
Jason Rhinelanderf2004932016-11-25 07:06:18 -0500383
Jason Rhinelander3f1ff3f2016-12-12 17:42:52 -0500384 py::dict d;
385 std::string bar = "bar";
386 d["str"] = bar;
387 d["num"] = 3.7;
388
Jason Rhinelanderf2004932016-11-25 07:06:18 -0500389 /// Issue #528: templated constructor
390 m2.def("tpl_constr_vector", [](std::vector<TplConstrClass> &) {});
391 m2.def("tpl_constr_map", [](std::unordered_map<TplConstrClass, TplConstrClass> &) {});
392 m2.def("tpl_constr_set", [](std::unordered_set<TplConstrClass> &) {});
393#if defined(PYBIND11_HAS_OPTIONAL)
394 m2.def("tpl_constr_optional", [](std::optional<TplConstrClass> &) {});
395#elif defined(PYBIND11_HAS_EXP_OPTIONAL)
396 m2.def("tpl_constr_optional", [](std::experimental::optional<TplConstrClass> &) {});
397#endif
Wenzel Jakobfe40dfe2016-11-07 15:59:01 +0100398}
Jason Rhinelander6873c202016-10-24 21:58:22 -0400399
Jason Rhinelander52f4be82016-09-03 14:54:22 -0400400// MSVC workaround: trying to use a lambda here crashes MSCV
401test_initializer issues(&init_issues);