diff options
author | dos-reis <gdr@axiomatics.org> | 2013-06-22 15:50:23 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2013-06-22 15:50:23 +0000 |
commit | bb00e7ae1951a75626e0ddeef919a7ebe0434cf3 (patch) | |
tree | 0cc9de51ca6f7fbf77918d119b72297ebd3b1083 /src/utils | |
parent | 14641621504f22a7c6874421d94b1f399666b336 (diff) | |
download | open-axiom-bb00e7ae1951a75626e0ddeef919a7ebe0434cf3.tar.gz |
Add SourceFile.H
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/sexpr.H | 11 |
1 files changed, 3 insertions, 8 deletions
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<T, SyntaxComparator> base; typedef typename base::const_iterator const_iterator; - template<typename U> - const T* allocate(const U& u) { - return &*this->insert(T(u)).first; - } - - template<typename U, typename V> - const T* allocate(const U& u, const V& v) { - return &*this->insert(T(u, v)).first; + template<typename... Args> + const T* allocate(const Args&... args) { + return &*this->insert(T(args...)).first; } }; |