Hello, <br><br>Consider:<br><br><span style="font-family:courier new,monospace">typedef std::pair&lt;int, int&gt; value_type;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">typedef allocator&lt;value_type, managed_shared_memory::</span><span style="font-family:courier new,monospace">segment_manager&gt; ValueAllocator;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">typedef boost::interprocess::map&lt;int, int, std::less&lt;int&gt;, ValueAllocator&gt; A_map;</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">class A </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">{</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">public:</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">�� A() { /* Construct shared memory map */ } </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">�� ~A() </span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">�� bool contains(int i); </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">private: </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">�� A_map* m_objA;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">};</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">inline bool</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">A::contains(int i) </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">{</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">��� A_map::iterator itr = m_objA-&gt;find(i);</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
��� return (itr != m_objA-&gt;end());</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">}</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Here, at the line </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">�� A_map::iterator itr = m_objA-&gt;find(i); </span><br>
<br>I see this warning:<br><br><span style="font-family:courier new,monospace">.../boost_1_49_0/include/boost/container/detail/tree.hpp:391:31: warning: returning reference to temporary [enabled by default]</span><br><br>
I dont see a reason for this. Can someone please point out if I am doing something wrong here?<br><br>Thanks in advance, <br>Regards,<br>Raj<br><br><br><br>

<br>
<table width="600" border="0" align="left" cellpadding="0" cellspacing="0"><tbody><tr><td align="right" valign="middle" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"><table width="100%" cellspacing="0" style="font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:18px;color:rgb(80,103,114)"><tbody><tr><td width="31%" align="left" valign="bottom" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"><font face="arial, sans-serif">Twitter:�</font><a href="http://twitter.com/#!/blismobile" style="color:rgb(5,162,207);text-decoration:none" target="_blank">@Blismobile</a><br>BlisMobile Media�<br>32 Percy Street,<br>London W1T 2DE<br><a href="http://www.blismobile.com/" style="color:rgb(236,36,124);text-decoration:none" target="_blank">www.blismobile.com</a></td><td width="51%" align="left" valign="bottom" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"><br></td><td width="18%" align="right" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"><a href="http://www.blismobile.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.amandadesign.co.uk/blis/email_signatures/images/blis_logo.gif" alt="BlisMobile" width="78" border="no" height="86"></a></td></tr></tbody></table></td></tr><tr><td align="right" valign="middle" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"><table width="100%" style="margin-top:5px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(203,219,226)"><tbody><tr><td align="left" valign="top" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"></td></tr></tbody></table><table width="100%" style="font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:18px;margin-top:5px"><tbody><tr><td width="18%" align="left" valign="top" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"><img src="http://www.amandadesign.co.uk/blis/email_signatures/images/bis_emma.gif" width="90" height="55"></td><td width="42%" align="left" valign="top" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"><a href="http://twitter.com/#!/blismobile" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.amandadesign.co.uk/blis/email_signatures/images/blis_twitter.gif" alt="Follow on Twitter" border="no" width="120" height="35"></a></td><td width="40%" align="right" valign="top" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"><a href="http://www.blismobile.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.amandadesign.co.uk/blis/email_signatures/images/blis_web.gif" alt="Blis Website" width="165" border="no" height="60"></a></td></tr></tbody></table></td></tr><tr><td align="right" valign="middle" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,Helvetica,sans-serif;font-size:22px;line-height:25px;color:rgb(255,255,255)"><table width="100%" style="font-family:Arial,Helvetica,sans-serif;font-size:11px;line-height:14px;color:rgb(137,158,168)"><tbody><tr><td align="left" valign="top" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="1"><span style="font-family:Calibri">This communication is from BlisMobile Media, which is a trading name of Breeze Tech (UK) Ltd, a company registered in England and Wales with registered number�</span><span lang="EN-US" style="font-family:Calibri">06455773</span><span style="font-family:Calibri">. Its registered office is 32 Percy Street, London W1T 2DE, United Kingdom.</span></font></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Calibri"><font size="1">�</font></span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="1"><span style="font-family:Calibri">This communication contains information that is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please (1) notify�<a href="mailto:info@blismobile.com" style="color:rgb(17,85,204)" target="_blank"><span style="color:windowtext;text-decoration:none">info@blismobile.com</span></a>�by forwarding this email and delete all copies from your system and (2) note that disclosure, distribution, copying or use of this communication is strictly prohibited. Email communications cannot be guaranteed to be secure or free from error or viruses. All emails sent to or from a Blismobile email account are securely archived and stored by an external supplier.�</span><span style="background-image:initial"><font face="Calibri">This email does not constitute a contractual agreement; such agreements are in specified contractual or Insertion Order (IO) form only and�exclusively�contain all the terms to which Breeze Tech )UK) Ltd will be bound.�</font></span><span style="font-family:Calibri">To the extent permitted by law, Breeze Tech (UK) Ltd does not accept any liability for use of or reliance on the contents of this email by any person save by the intended recipient(s) to the extent agreed in a contract or Insertion Order.</span></font></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Calibri"><font size="1">�</font></span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Calibri"><font size="1">Opinions, conclusions and other information in this email which have not been delivered by way of the business of Breeze Tech (UK) Ltd are neither given nor endorsed by it.</font></span></p></td></tr></tbody></table></td></tr></tbody></table>