diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-01-23 16:58:06 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-01-23 16:58:06 (GMT) |
commit | 69247ac083836cfae493e0d220c5faf3818c0bf9 (patch) | |
tree | a63e584f7d3731ccaccb6ce02f844ea2b46f4cb9 /src/uscxml/messages | |
parent | ef66cbbaf07bd1ac661f9a9622dcdaf6851ca6ba (diff) | |
download | uscxml-69247ac083836cfae493e0d220c5faf3818c0bf9.zip uscxml-69247ac083836cfae493e0d220c5faf3818c0bf9.tar.gz uscxml-69247ac083836cfae493e0d220c5faf3818c0bf9.tar.bz2 |
Introduced InvokerCallbacks
Diffstat (limited to 'src/uscxml/messages')
-rw-r--r-- | src/uscxml/messages/Data.h | 11 |
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) {} |