diff options
Diffstat (limited to 'math/muparser/patches/patch-src_muParserTest.cpp')
-rw-r--r-- | math/muparser/patches/patch-src_muParserTest.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/math/muparser/patches/patch-src_muParserTest.cpp b/math/muparser/patches/patch-src_muParserTest.cpp new file mode 100644 index 00000000000..e2a04f0a316 --- /dev/null +++ b/math/muparser/patches/patch-src_muParserTest.cpp @@ -0,0 +1,37 @@ +$NetBSD: patch-src_muParserTest.cpp,v 1.1 2012/11/16 01:04:43 joerg Exp $ + +--- src/muParserTest.cpp.orig 2012-11-14 13:35:12.000000000 +0000 ++++ src/muParserTest.cpp +@@ -1292,25 +1292,25 @@ namespace mu + // Test copy constructor + std::vector<mu::Parser> vParser; + vParser.push_back(*(p1.get())); +- mu::Parser p2 = vParser[0]; // take parser from vector ++ mu::Parser p2a = vParser[0]; // take parser from vector + + // destroy the originals from p2 + vParser.clear(); // delete the vector + p1.reset(0); + +- fVal[2] = p2.Eval(); ++ fVal[2] = p2a.Eval(); + + // Test assignement operator + // additionally disable Optimizer this time +- mu::Parser p3; +- p3 = p2; +- p3.EnableOptimizer(false); +- fVal[3] = p3.Eval(); ++ mu::Parser p3a; ++ p3a = p2a; ++ p3a.EnableOptimizer(false); ++ fVal[3] = p3a.Eval(); + + // Test Eval function for multiple return values + // use p2 since it has the optimizer enabled! + int nNum; +- value_type *v = p2.Eval(nNum); ++ value_type *v = p2a.Eval(nNum); + fVal[4] = v[nNum-1]; + } + catch(std::exception &e) |