Skip to content

Commit

Permalink
fix build on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzel Jakob committed Oct 19, 2015
1 parent 436b731 commit 5de4184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ template <typename type> class type_caster : public type_caster_custom {
}

operator type*() { return (type *) value; }
operator type&() { return (type &) *value; }
operator type&() { return *((type *) value); }
protected:
template <typename T = type, typename std::enable_if<std::is_copy_constructible<T>::value, int>::type = 0>
static void *copy_constructor(const void *arg) {
Expand Down

0 comments on commit 5de4184

Please sign in to comment.