pkgsrc/devel/xsd/patches/patch-libcult-1.4.2_cult_mm_static-ptr.hxx
2013-03-24 16:58:28 +00:00

14 lines
420 B
C++

$NetBSD: patch-libcult-1.4.2_cult_mm_static-ptr.hxx,v 1.1 2013/03/24 16:58:28 joerg Exp $
--- libcult-1.4.2/cult/mm/static-ptr.hxx.orig 2013-03-23 19:33:43.000000000 +0000
+++ libcult-1.4.2/cult/mm/static-ptr.hxx
@@ -60,7 +60,8 @@ namespace Cult
static X*
instance_ ()
{
- static X* i = new (KeyList ()) X;
+ KeyList k;
+ static X* i = new (k) X;
return i;
}