From bb00e7ae1951a75626e0ddeef919a7ebe0434cf3 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 22 Jun 2013 15:50:23 +0000 Subject: Add SourceFile.H --- src/utils/sexpr.H | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/utils') diff --git a/src/utils/sexpr.H b/src/utils/sexpr.H index 358dd506..d9ba3b33 100644 --- a/src/utils/sexpr.H +++ b/src/utils/sexpr.H @@ -396,14 +396,9 @@ namespace OpenAxiom { typedef std::set base; typedef typename base::const_iterator const_iterator; - template - const T* allocate(const U& u) { - return &*this->insert(T(u)).first; - } - - template - const T* allocate(const U& u, const V& v) { - return &*this->insert(T(u, v)).first; + template + const T* allocate(const Args&... args) { + return &*this->insert(T(args...)).first; } }; -- cgit v1.2.3