Skip to content

Conversation

@dean0x7d
Copy link
Member

@dean0x7d dean0x7d commented Jan 2, 2017

MSVC fails to compile casts of the form obj.cast<T&>() in certain situations. The problem is due to an instantiation of a pointer to a reference (invalid). This PR does not include a test because it seemed too contrived, but let me know if it's needed. The fix just replaces type_caster with make_caster everywhere in order to strip references (which should be preferable anyway).

@wjakob
Copy link
Member

wjakob commented Jan 3, 2017

Looks good, thank you!

@wjakob wjakob merged commit 5f07fac into pybind:master Jan 3, 2017
@dean0x7d dean0x7d deleted the fix-msvc-error branch January 4, 2017 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants