Jason Rhinelander
51d18aa252
Fix ambiguous initialize_list arguments
...
This removes the convert-from-arithemtic-scalar constructor of
any_container as it can result in ambiguous calls, as in:
py::array_t<float>({ 1, 2 })
which could be intepreted as either of:
py::array_t<float>(py::array_t<float>(1, 2))
py::array_t<float>(py::detail::any_container({ 1, 2 }))
Removing the convert-from-arithmetic constructor reduces the number of
implicit conversions, avoiding the ambiguity for array and array_t.
This also re-adds the array/array_t constructors taking a scalar
argument for backwards compatibility.
2017-04-28 14:12:06 -04:00
..
2017-02-28 00:27:26 +01:00
2017-04-06 22:41:32 +02:00
2017-03-10 15:42:42 +01:00
2017-01-31 17:28:29 +01:00
2017-01-31 17:05:44 +01:00
2017-04-27 09:12:41 -04:00
2016-09-07 01:25:27 +02:00
2017-03-10 15:42:42 +01:00
2016-09-09 03:04:09 -04:00
2016-12-16 15:00:46 +01:00
2016-12-16 15:00:46 +01:00
2017-03-10 15:42:42 +01:00
2017-04-03 00:52:47 +02:00
2017-04-03 00:52:47 +02:00
2017-02-26 23:15:39 +01:00
2017-02-22 20:00:59 +01:00
2017-03-11 23:04:16 -04:00
2017-03-11 23:04:16 -04:00
2016-10-20 16:19:58 +02:00
2016-12-13 00:59:28 +01:00
2016-12-14 20:40:49 +01:00
2016-12-14 20:40:49 +01:00
2016-11-17 11:01:11 +01:00
2016-11-20 21:21:54 +01:00
2017-03-08 12:32:42 -05:00
2017-03-08 12:32:42 -05:00
2017-04-08 23:25:13 -04:00
2017-04-08 23:25:13 -04:00
2016-11-17 23:24:47 +01:00
2017-03-03 08:45:50 -08:00
2016-11-20 21:21:54 +01:00
2017-03-29 00:27:56 +02:00
2016-08-19 16:31:48 +02:00
2017-04-02 22:38:50 +02:00
2017-04-02 22:38:50 +02:00
2017-02-23 15:45:26 +01:00
2017-02-23 15:45:26 +01:00
2017-02-08 08:45:51 +01:00
2016-12-16 15:00:46 +01:00
2017-01-31 17:24:41 +01:00
2017-03-10 15:42:42 +01:00
2017-04-28 11:18:58 -04:00
2017-04-28 11:18:58 -04:00
2016-09-03 17:34:41 -04:00
2017-03-15 15:38:14 +01:00
2017-04-27 09:12:41 -04:00
2017-04-27 09:12:41 -04:00
2017-04-28 14:12:06 -04:00
2017-04-13 09:53:56 -04:00
2017-03-14 02:50:04 +01:00
2017-03-14 02:50:04 +01:00
2017-03-21 18:53:56 -03:00
2017-03-21 18:53:56 -03:00
2016-09-03 17:34:41 -04:00
2017-02-03 20:47:17 -05:00
2016-09-03 17:34:41 -04:00
2016-12-16 15:00:46 +01:00
2017-01-04 15:05:20 +01:00
2016-12-16 15:00:46 +01:00
2017-04-28 11:14:14 -04:00
2017-04-28 11:14:14 -04:00
2017-02-26 23:57:03 +01:00
2017-02-26 23:57:03 +01:00
2017-03-21 10:26:22 +01:00
2017-03-21 10:26:22 +01:00
2017-03-14 02:50:04 +01:00
2017-04-18 14:21:31 -04:00
2016-09-11 01:21:53 -04:00
2016-12-16 15:00:46 +01:00