Ask Your Question

Revision history [back]

You achieved the &amp by copy pasting from a webpage. Simply remove the amp part and your code will work perfectly fine...

You achieved the &amp by copy pasting from a webpage. Simply remove the amp part and your code will work perfectly fine...

The reason why the & is actually there is to ensure that your are writing to the correct shared data instance, instead of just passing the pointer around!

click to hide/show revision 3
No.3 Revision

updated 2016-03-31 04:46:25 -0600

berak gravatar image

You achieved the &amp by copy pasting from a webpage. Simply remove replace the amp & part with a & and your code will work perfectly fine...

The reason why the & is actually there is to ensure that your are writing to the correct shared data instance, instead of just passing the pointer around!

You achieved the &amp by copy pasting from a webpage. Simply replace the & part with a & and your code will work perfectly fine...

The reason why the & & is actually there is to ensure that your are writing to the correct shared data instance, instead of just passing the pointer around!