Dean Moldovan
2b4477eb65
Make TypeErrors more informative when an optional header is missing
...
E.g. trying to convert a `list` to a `std::vector<int>` without
including <pybind11/stl.h> will now raise an error with a note that
suggests checking the headers.
The note is only appended if `std::` is found in the function
signature. This should only be the case when a header is missing.
E.g. when stl.h is included, the signature would contain `List[int]`
instead of `std::vector<int>` while using stl_bind.h would produce
something like `MyVector`. Similarly for `std::map`/`Dict`, `complex`,
`std::function`/`Callable`, etc.
There's a possibility for false positives, but it's pretty low.
2017-09-12 08:06:46 +02:00
..
2017-08-07 23:08:20 +02:00
2017-09-12 08:05:05 +02:00
2017-09-12 08:06:46 +02:00
2017-08-17 09:33:27 -04:00
2017-06-12 09:56:55 -03:00
2017-09-10 12:28:03 +02:00
2017-01-31 17:05:44 +01:00
2017-09-12 08:06:46 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-06-10 16:44:21 +02:00
2017-08-31 01:28:07 +02:00
2017-08-05 18:46:22 -04:00
2017-07-23 11:02:43 -04:00
2017-08-05 18:46:22 -04:00
2017-09-06 10:21:11 +02:00
2017-09-06 10:21:11 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-28 16:34:06 +02:00
2017-08-28 16:34:06 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2016-11-20 21:21:54 +01:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-07-28 20:40:35 -04:00
2017-08-04 10:47:34 -04:00
2017-08-23 12:05:18 -04:00
2017-08-28 16:08:53 +02:00
2017-08-25 02:12:43 +02:00
2017-08-25 02:12:43 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-09-10 12:28:03 +02:00
2017-09-10 12:28:03 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-07-28 20:39:33 -04:00
2017-08-17 09:33:27 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-30 14:22:00 +02:00
2017-08-30 14:22:00 +02:00
2017-09-06 15:20:52 +02:00
2017-08-30 11:11:38 +02:00
2017-09-11 10:09:32 +02:00
2017-09-11 10:09:32 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-23 17:18:57 +02:00
2017-08-05 18:46:22 -04:00
2017-09-10 12:25:10 +02:00
2017-09-10 12:25:10 +02:00
2017-09-10 12:25:10 +02:00
2017-09-12 08:06:46 +02:00
2017-08-17 09:33:27 -04:00
2017-08-17 09:33:27 -04:00