Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0f3fc95

Browse filesBrowse files
committed
Assignment operator template caused ambiguity error in MSVC build - drop it, it's strictly not necessary.
1 parent ae52437 commit 0f3fc95
Copy full SHA for 0f3fc95

File tree

Expand file treeCollapse file tree

1 file changed

+0
-86
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-86
lines changed

‎cores/esp8266/Delegate.h

Copy file name to clipboardExpand all lines: cores/esp8266/Delegate.h
-86Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -231,21 +231,6 @@ namespace detail
231231
return *this;
232232
}
233233

234-
template<typename F> DelegatePImpl& operator=(F functional)
235-
{
236-
if (FUNC != kind)
237-
{
238-
if (FPA == kind)
239-
{
240-
obj.~A();
241-
}
242-
new (&this->functional) FunctionType();
243-
kind = FUNC;
244-
}
245-
this->functional = std::forward<F>(functional);
246-
return *this;
247-
}
248-
249234
DelegatePImpl& IRAM_ATTR operator=(std::nullptr_t)
250235
{
251236
if (FUNC == kind)
@@ -491,17 +476,6 @@ namespace detail
491476
return *this;
492477
}
493478

494-
template<typename F> DelegatePImpl& operator=(F fn)
495-
{
496-
if (FPA == kind)
497-
{
498-
obj = {};
499-
}
500-
kind = FP;
501-
this->fn = std::forward<F>(fn);
502-
return *this;
503-
}
504-
505479
DelegatePImpl& IRAM_ATTR operator=(std::nullptr_t)
506480
{
507481
if (FPA == kind)
@@ -701,17 +675,6 @@ namespace detail
701675
return *this;
702676
}
703677

704-
template<typename F> DelegatePImpl& operator=(F functional)
705-
{
706-
if (FUNC != kind)
707-
{
708-
new (&this->functional) FunctionType();
709-
kind = FUNC;
710-
}
711-
this->functional = std::forward<F>(functional);
712-
return *this;
713-
}
714-
715678
DelegatePImpl& IRAM_ATTR operator=(std::nullptr_t)
716679
{
717680
if (FUNC == kind)
@@ -852,12 +815,6 @@ namespace detail
852815
return *this;
853816
}
854817

855-
template<typename F> DelegatePImpl& operator=(F fn)
856-
{
857-
DelegatePImpl::fn = std::forward<F>(fn);
858-
return *this;
859-
}
860-
861818
DelegatePImpl& IRAM_ATTR operator=(std::nullptr_t)
862819
{
863820
fn = nullptr;
@@ -1075,21 +1032,6 @@ namespace detail
10751032
return *this;
10761033
}
10771034

1078-
template<typename F> DelegateImpl& operator=(F functional)
1079-
{
1080-
if (FUNC != kind)
1081-
{
1082-
if (FPA == kind)
1083-
{
1084-
obj.~A();
1085-
}
1086-
new (&this->functional) FunctionType();
1087-
kind = FUNC;
1088-
}
1089-
this->functional = std::forward<F>(functional);
1090-
return *this;
1091-
}
1092-
10931035
DelegateImpl& IRAM_ATTR operator=(std::nullptr_t)
10941036
{
10951037
if (FUNC == kind)
@@ -1334,17 +1276,6 @@ namespace detail
13341276
return *this;
13351277
}
13361278

1337-
template<typename F> DelegateImpl& operator=(F fn)
1338-
{
1339-
if (FPA == kind)
1340-
{
1341-
obj = {};
1342-
}
1343-
kind = FP;
1344-
this->fn = std::forward<F>(fn);
1345-
return *this;
1346-
}
1347-
13481279
DelegateImpl& IRAM_ATTR operator=(std::nullptr_t)
13491280
{
13501281
if (FPA == kind)
@@ -1543,17 +1474,6 @@ namespace detail
15431474
return *this;
15441475
}
15451476

1546-
template<typename F> DelegateImpl& operator=(F functional)
1547-
{
1548-
if (FUNC != kind)
1549-
{
1550-
new (&this->functional) FunctionType();
1551-
kind = FUNC;
1552-
}
1553-
this->functional = std::forward<F>(functional);
1554-
return *this;
1555-
}
1556-
15571477
DelegateImpl& IRAM_ATTR operator=(std::nullptr_t)
15581478
{
15591479
if (FUNC == kind)
@@ -1694,12 +1614,6 @@ namespace detail
16941614
return *this;
16951615
}
16961616

1697-
template<typename F> DelegateImpl& operator=(F fn)
1698-
{
1699-
DelegateImpl::fn = std::forward<F>(fn);
1700-
return *this;
1701-
}
1702-
17031617
DelegateImpl& IRAM_ATTR operator=(std::nullptr_t)
17041618
{
17051619
fn = nullptr;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.