Skip to content

Compilation fails (passing address of temporary) #3

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions