You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know in the past you have opted against using templates on the C++ side. However I was browsing the cxx thread regarding constructors and one of the recent posts recommended a workaround to the problem. Rather than instrument each constructor by itself, create a template like so:
I know in the past you have opted against using templates on the C++ side. However I was browsing the
cxx
thread regarding constructors and one of the recent posts recommended a workaround to the problem. Rather than instrument each constructor by itself, create a template like so:Then we can just re-use it when binding a new constructor.
What are your thoughts on taking this approach to remove some of the boilerplate?
Original thread:
dtolnay/cxx#280 (comment)
The text was updated successfully, but these errors were encountered: