summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-07-03 22:05:46 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-07-03 22:05:46 (GMT)
commit04121c58222c95b1d808a1556b5110832a1c1119 (patch)
treebd57fd88cd15bc6a9078cff2cd6bfe30e9008c3d /src
parent476c809cf4007f3d6294188c4cde125a1295d40c (diff)
downloaduscxml-04121c58222c95b1d808a1556b5110832a1c1119.zip
uscxml-04121c58222c95b1d808a1556b5110832a1c1119.tar.gz
uscxml-04121c58222c95b1d808a1556b5110832a1c1119.tar.bz2
Keep MSVC happy
Diffstat (limited to 'src')
-rw-r--r--src/uscxml/Interpreter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/uscxml/Interpreter.h b/src/uscxml/Interpreter.h
index 7b5ad06..6075dbc 100644
--- a/src/uscxml/Interpreter.h
+++ b/src/uscxml/Interpreter.h
@@ -228,14 +228,15 @@ public:
std::shared_ptr<InterpreterImpl> getImpl() const {
return _impl;
}
-
+#if 0
+ // "Ambiguous user-defined-conversion" with operator bool() on MSVC from Visual Studio 12
explicit operator MicroStepCallbacks*() { return (MicroStepCallbacks*)(_impl.get()); }
explicit operator DataModelCallbacks*() { return (DataModelCallbacks*)(_impl.get()); }
explicit operator IOProcessorCallbacks*() { return (IOProcessorCallbacks*)(_impl.get()); }
explicit operator ContentExecutorCallbacks*() { return (ContentExecutorCallbacks*)(_impl.get()); }
explicit operator DelayedEventQueueCallbacks*() { return (DelayedEventQueueCallbacks*)(_impl.get()); }
explicit operator InvokerCallbacks*() { return (InvokerCallbacks*)(_impl.get()); }
-
+#endif
protected:
std::shared_ptr<InterpreterImpl> _impl;