Skip to content
Snippets Groups Projects
Commit 56cd32d8 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

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
parent e0f5c89b
No related branches found
No related tags found
No related merge requests found
...@@ -228,9 +228,15 @@ class RingAccount : public SIPAccountBase { ...@@ -228,9 +228,15 @@ class RingAccount : public SIPAccountBase {
* The type of this instance is given in template argument. * The type of this instance is given in template argument.
* This type can be any base class of SIPCall class (included). * This type can be any base class of SIPCall class (included).
*/ */
#ifndef RING_UWP
template <class T=SIPCall> template <class T=SIPCall>
std::shared_ptr<enable_if_base_of<T, SIPCall> > std::shared_ptr<enable_if_base_of<T, SIPCall> >
newOutgoingCall(const std::string& toUrl); newOutgoingCall(const std::string& toUrl);
#else
template <class T>
std::shared_ptr<T>
newOutgoingCall(const std::string& toUrl);
#endif
/** /**
* Create incoming SIPCall. * Create incoming SIPCall.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment