We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi all,
I want to ask that is it reliable to implement intrusive_ptr aliasing constructor, similar to shared_ptr existing one?
intrusive_ptr
shared_ptr
Possible usage:
struct Test1 : boost::intrusive_ref_counter<Test1> { int a; }; struct Test2 : boost::intrusive_ref_counter<Test2> { int b; }; void fun(boost::intrusive_ptr<int> ctr); auto iptr1 = boost::intrusive_ptr<Test1>(new Test1); auto iptr2 = boost::intrusive_ptr<Test2>(new Test2); fun( {iptr1, &iptr1->a} ); fun( {iptr2, &iptr2->b} );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi all,
I want to ask that is it reliable to implement
intrusive_ptr
aliasing constructor, similar toshared_ptr
existing one?Possible usage:
The text was updated successfully, but these errors were encountered: