summaryrefslogtreecommitdiffstats
path: root/src/uscxml/messages/Data.h
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-01-23 16:58:06 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-01-23 16:58:06 (GMT)
commit69247ac083836cfae493e0d220c5faf3818c0bf9 (patch)
treea63e584f7d3731ccaccb6ce02f844ea2b46f4cb9 /src/uscxml/messages/Data.h
parentef66cbbaf07bd1ac661f9a9622dcdaf6851ca6ba (diff)
downloaduscxml-69247ac083836cfae493e0d220c5faf3818c0bf9.zip
uscxml-69247ac083836cfae493e0d220c5faf3818c0bf9.tar.gz
uscxml-69247ac083836cfae493e0d220c5faf3818c0bf9.tar.bz2
Introduced InvokerCallbacks
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) {}