From 56cd32d884c4703c9333fdf2b22b8a0b443ff12d Mon Sep 17 00:00:00 2001
From: atraczyk <andreastraczyk@gmail.com>
Date: Mon, 26 Dec 2016 15:03:16 -0500
Subject: [PATCH] build: fix template specialization error on Windows native
 build

- prevents error C2910 which disallows explicit specialization of
  a member function outside the class if the function has already
  been explicitly specialized via a template class specialization.

Tuleap: #790

Change-Id: Idde2413707abf0ef65a3445ea1d577c0394c7121
---
 src/ringdht/ringaccount.h | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/ringdht/ringaccount.h b/src/ringdht/ringaccount.h
index 6eb828d157..e930a3247f 100644
--- a/src/ringdht/ringaccount.h
+++ b/src/ringdht/ringaccount.h
@@ -228,9 +228,15 @@ class RingAccount : public SIPAccountBase {
          *      The type of this instance is given in template argument.
          *      This type can be any base class of SIPCall class (included).
          */
-        template <class T=SIPCall>
-        std::shared_ptr<enable_if_base_of<T, SIPCall> >
-        newOutgoingCall(const std::string& toUrl);
+#ifndef RING_UWP
+        template <class T=SIPCall>
+        std::shared_ptr<enable_if_base_of<T, SIPCall> >
+        newOutgoingCall(const std::string& toUrl);
+#else
+        template <class T>
+        std::shared_ptr<T>
+        newOutgoingCall(const std::string& toUrl);
+#endif
 
         /**
          * Create incoming SIPCall.
-- 
GitLab