]> git.sesse.net Git - casparcg/commitdiff
Fixed bug in retry_task
authorhellgore <hellgore@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Thu, 17 Jan 2013 13:22:51 +0000 (13:22 +0000)
committerhellgore <hellgore@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Thu, 17 Jan 2013 13:22:51 +0000 (13:22 +0000)
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/trunk@3678 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d

common/concurrency/future_util.h

index fab0011db236d507f98c87c08632a22a538e9ef6..952e96ff9a43f0271fa118fce37519d71ddefb20 100644 (file)
@@ -92,7 +92,8 @@ public:
         * @param exception The exception to mark the future with *if* the task
         *                  completion fails.
         */
-       void try_or_fail(const std::exception& exception)
+       template <class E>
+       void try_or_fail(const E& exception)
        {
                boost::mutex::scoped_lock lock(mutex_);