Skip to content
Snippets Groups Projects
Commit 5684ee61 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

better move semantics use in rvalue_ref

parent 2bba4b11
No related branches found
No related tags found
No related merge requests found
...@@ -71,11 +71,11 @@ struct rvalue_ref { ...@@ -71,11 +71,11 @@ struct rvalue_ref {
delete holder; delete holder;
} }
   
T * operator ->( ) { T * operator ->( ) && {
return holder; return holder;
} }
   
T * operator ->( ) const { T * operator ->( ) const & {
return holder; return holder;
} }
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment