newthis / alchemy-2

Automatically exported from code.google.com/p/alchemy-2
0 stars 0 forks source link

Compilation fails (passing address of temporary) #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I need this patch to compile under Linux, g++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 
4.7.3. Also had to chmod +x src/parser/replacefolcpp.pl and 
src/parser/replacefoly.pl.

Index: src/liftedinfer/common/src/queryupdater.cpp
===================================================================
--- src/liftedinfer/common/src/queryupdater.cpp (revision 7)
+++ src/liftedinfer/common/src/queryupdater.cpp (working copy)
@@ -508,7 +508,8 @@
        {
                if(!values[i])
                {
-                       
rbestimates->incrementValue(keys[i],&(LogDouble(0.5,false)));
+                       LogDouble tmp(0.5,false);
+                       rbestimates->incrementValue(keys[i],&tmp);
                }
                lvrAtomHashUpdateFlags->setValue(keys[i],false);
        }

Original issue reported on code.google.com by earthwi...@gentoo.org on 29 Sep 2013 at 7:38