Hello Carsten, Visual Studio 2012 successfully compiles OpenSG with your patch applied. Regards, Alexander Lang
> Hello Alexander, > > On 11/18/2012 03:31 PM, Alexander Lang wrote: >>> Hi, >>> Compilation fails in OSGNurbsPatchSurface.cpp, line 1509 and 1535: >>> error C2664: 'std::make_pair' : cannot convert parameter 1 from >>> 'double' >>> to 'const double &&' > > > The message is 'You cannot bind an lvalue to an rvalue reference'. > > However, VS 11 compiles if i remove the template arguments and let the > > compiler apply template argument deduction: > > std::make_pair<double, unsigned int>(vd_curvestart[ui_curve_cnt], > > ui_curve_cnt) > > becomes > > std::make_pair(vd_curvestart[ui_curve_cnt], ui_curve_cnt) > > Could that be a C++11-related issue? > > given that rvalue references are a C++11 feature: yes ;) ;) > I haven't read up on the details regarding conversions of rvalue > references, but in general I prefer to use something like this for map > insertion anyway: > > typedef std::map<key, value> MapType; > > MapType someMap; > someMap.insert(MapType::value_type(someKey, someValue)); > > The attached patch changes the lines you mention to use that form > instead. Would you mind giving it a try to see if it fixes the problem > (I don't have VS 2012 yet)? Thank you! > > Cheers, > Carsten > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov_______________________________________________ > Opensg-users mailing list > Opensg-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users