OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace commits / d7dc956

Patch up for compilation
d7dc956f6e70c3bc4e8b3ead1ca48c6ea17a90a3
by Linas Vepštas <linasvepstas@gmail.com> · 2026-01-22T20:26:27.000Z

Changed files (1) +7 -2

opencog/atoms/flow/LiteralValueOfLink.cc +7 -2
……@@ -22,6 +22,7 @@
2222 */
2323
2424#include <opencog/atomspace/AtomSpace.h>
25#include <opencog/atoms/value/VoidValue.h>
2526#include "LiteralValueOfLink.h"
2627
2728using namespace opencog;
……@@ -45,13 +46,17 @@ ValuePtr LiteralValueOfLink::execute(AtomSpace* as, bool silent)
4546 ValuePtr pap(get_literal(as, silent));
4647 if (pap) return pap;
4748
49 // If we are here, then no Value was found. If there is a
50 // third Atom, then it specifies a default to use instead.
51 if (2 < _outgoing.size())
52 return _outgoing[2];
53
4854 // Oh no! Nothing was found!
4955 if (silent)
5056 throw SilentException();
5157
5258 throw InvalidParamException(TRACE_INFO,
53 "No value at key %s on atom %s",
54 ak->to_string().c_str(), ah->to_string().c_str());
59 "No value for %s", to_string().c_str());
5560
5661 return createVoidValue();
5762}