Dean Moldovan 2bab5793f7 Later assignments to accessors should not overwrite the original field
`auto var = l[0]` has a strange quirk: `var` is actually an accessor and
not an object, so any later assignment of `var = ...` would modify l[0]
instead of `var`. This is surprising compared to the non-auto assignment
`py::object var = l[0]; var = ...`.

By overloading `operator=` on lvalue/rvalue, the expected behavior is
restored even for `auto` variables.
2016-09-23 02:00:01 +02:00
..
2016-09-20 11:52:25 +02:00
2016-09-06 13:02:29 +09:00
2016-08-19 13:19:38 +02:00
2016-09-06 13:02:29 +09:00
2016-09-06 13:02:29 +09:00
2016-08-19 13:19:38 +02:00
2016-08-19 13:19:38 +02:00
2016-08-19 13:19:38 +02:00
2016-09-06 13:02:29 +09:00
2016-09-05 17:11:16 -04:00