Dean Moldovan 1ac19036d6 Add a scope guard call policy
```c++
m.def("foo", foo, py::call_guard<T>());
```

is equivalent to:

```c++
m.def("foo", [](args...) {
    T scope_guard;
    return foo(args...); // forwarded arguments
});
```
2017-04-03 00:52:47 +02:00
..
2017-02-24 23:19:50 +01:00
2016-10-20 15:21:34 +02:00
2017-04-03 00:52:47 +02:00
2017-04-03 00:52:47 +02:00