aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-06-22 15:50:23 +0000
committerdos-reis <gdr@axiomatics.org>2013-06-22 15:50:23 +0000
commitbb00e7ae1951a75626e0ddeef919a7ebe0434cf3 (patch)
tree0cc9de51ca6f7fbf77918d119b72297ebd3b1083 /src/utils
parent14641621504f22a7c6874421d94b1f399666b336 (diff)
downloadopen-axiom-bb00e7ae1951a75626e0ddeef919a7ebe0434cf3.tar.gz
Add SourceFile.H
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/sexpr.H11
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;
}
};