From 04121c58222c95b1d808a1556b5110832a1c1119 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Tue, 4 Jul 2017 00:05:46 +0200 Subject: Keep MSVC happy --- src/uscxml/Interpreter.h | 5 +++-- 1 file 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 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 _impl; -- cgit v0.12