summaryrefslogtreecommitdiffstats
path: root/src/uscxml/messages/Data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/messages/Data.h')
-rw-r--r--src/uscxml/messages/Data.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/uscxml/messages/Data.h b/src/uscxml/messages/Data.h
index b279696..6d4af3e 100644
--- a/src/uscxml/messages/Data.h
+++ b/src/uscxml/messages/Data.h
@@ -65,10 +65,17 @@ public:
explicit Data(const std::string& value) : node(NULL), atom(toStr(value)), type(VERBATIM) {}
- template <typename T, typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
+
+#ifndef SWIGIMPORTED
+ // swig barfs on this one, have them explictly
+ template <
+ typename T,
+ typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type
+ >
explicit Data(T value)
: node(NULL), atom(toStr(value)), type(INTERPRETED) {}
-
+#endif
+
template <typename T>
explicit Data(T value, Type type) : node(NULL), atom(toStr(value)), type(type) {}