<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Mac I have the following compilation error:<div class=""><div style="margin: 0px; font-size: 14px; font-family: Menlo;" class=""><b class=""><br class=""></b></div><div style="margin: 0px; font-size: 14px; font-family: Menlo;" class=""><b class="">/Users/math/repos/ow/src/modules/clusterDisplay/WMClusterDisplay.cpp:60:16: </b><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class=""><b class="">error: </b></span><b class="">no viable conversion from 'result_type'</b></div><div style="margin: 0px; font-size: 14px; font-family: Menlo;" class=""><b class="">&nbsp; &nbsp; &nbsp; (aka 'boost::optional&lt;bool&gt;') to 'bool'</b></div><div style="margin: 0px; font-size: 14px; font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; return m_signalLeftButtonPush( WVector2f( ea.getX(), ea.getY() ) );</div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class="">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</b></div><div class="">The corresponding code is the first return stmt below:</div><div class=""><br class=""></div><div class=""><div class="">bool WMClusterDisplay::MainViewEventHandler::handle( const osgGA::GUIEventAdapter&amp; ea, osgGA::GUIActionAdapter&amp; /* aa */ )</div><div class="">{ &nbsp;&nbsp;</div><div class="">&nbsp; &nbsp; // &nbsp; &nbsp;wlog::debug( "WMClusterDisplay::MainViewEventHandler" ) &lt;&lt; "handle";</div><div class="">&nbsp; &nbsp; if( ea.getEventType() == GUIEvents::PUSH &amp;&amp; ea.getButton() == osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON )</div><div class="">&nbsp; &nbsp; {</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; return m_signalLeftButtonPush( WVector2f( ea.getX(), ea.getY() ) );</div><div class="">&nbsp; &nbsp; }</div><div class="">&nbsp; &nbsp; return false;</div><div class="">}</div></div><div class=""><br class=""></div><div class="">Where the header says:</div><div class=""><br class=""></div><div><div>typedef boost::signals2::signal&lt; bool ( WVector2f ) &gt; LeftButtonPushSignalType;</div><div><div>[…]</div><div>LeftButtonPushSignalType m_signalLeftButtonPush;</div><div class=""><br class=""></div><div class="">I am not sure what the problem is and how to fix it. Do we need special boost version? Currently I use: 1.58.0. All compiled with clang. The GCC I cannot test here, as all my libs are linked against the stdlib from clang which is not compatible with gcc’s stdlib.</div><div class=""><br class=""></div></div></div><div>best-</div><div>Mathias</div><div><br class=""><blockquote type="cite" class=""><div class="">Am 16.08.2015 um 12:32 schrieb Sebastian Eichelbaum &lt;<a href="mailto:openwalnut@nemtics.com" class="">openwalnut@nemtics.com</a>&gt;:</div><br class="Apple-interchange-newline"><div class="">Hi List,<br class=""><br class="">I have pushed several changes (Release Branch) to make OW compile with --std=c++11 compiler flag. The issues where mainly related to implicit casts of shared_ptr to bools (something like "dataValid = ( dataSet )"). I changed this to "dataValid = ( dataSet != NULL )". Although this is not the C++11 way (we should use nullptr), it keeps compatibility with c++98 for now, as we are not yet sure if everything is fine on OSX (Linux + Windows was tested by me. Works with Clang).<br class=""><br class="">I would like to ask you to compile OW again. Please also test GCC and OSX.<br class=""><br class="">If everything is fine, we stick with c++11.<br class=""><br class="">Best<br class="">Sebastian<br class=""><br class="">-- <br class="">Dr. rer. nat. Sebastian Eichelbaum<br class="">Nemtics Visualization - Software | Training | Consulting<br class=""><a href="http://www.nemtics.com" class="">http://www.nemtics.com</a><br class="">sebastian.eichelbaum@nemtics.com<br class="">+49 176 34541337<br class="">Gohliser Straße 20 - D-04105 Leipzig<br class="">_______________________________________________<br class="">OpenWalnut-Dev mailing list<br class="">OpenWalnut-Dev@lists.informatik.uni-leipzig.de<br class="">http://lists.informatik.uni-leipzig.de/mailman/listinfo/openwalnut-dev<br class=""><br class="">Archive: http://lists.informatik.uni-leipzig.de/pipermail/openwalnut-dev/<br class=""><br class=""></div></blockquote></div><br class=""></div></body></html>