From cc79654d9da635b7eefc81376173ec7588eab4dd Mon Sep 17 00:00:00 2001 From: Alex Elzenaar Date: Sun, 15 Feb 2015 17:21:05 +1300 Subject: [PATCH] Fixed issue #8 Issue YasserAsmi/jvar#8 is fixed by adding an explicit template instantiation to the constructor prototype StrArray::StrArray(). This issue only affects G++ versions < 4.5, but the fix is valid C++ and shouldn't break anything for anyone else. See the comments in the issue for more info. --- include/arr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/arr.h b/include/arr.h index 85b0bf3..de6e339 100644 --- a/include/arr.h +++ b/include/arr.h @@ -1081,7 +1081,7 @@ class StrArray : public ObjArray * Construct an empty StrArray. */ StrArray() : - ObjArray(StrArray::compare) + ObjArray(StrArray::compare) { }