Where is matx::non_owning
now?
#384
-
I used to create a |
Beta Was this translation helpful? Give feedback.
Answered by
cliffburdick
Feb 23, 2023
Replies: 1 comment
-
Hi @ZJUGuoShuai, non_owning is still available and is the default when you pass in your own pointer, whereas if you don't pass in your own pointer, the type defaults to owning. We did make a change several months ago to make this a runtime parameter rather than a template parameter. For example:
You would now do something like:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AtomicVar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ZJUGuoShuai, non_owning is still available and is the default when you pass in your own pointer, whereas if you don't pass in your own pointer, the type defaults to owning. We did make a change several months ago to make this a runtime parameter rather than a template parameter. For example:
You would now do something like: