@@ -231,21 +231,6 @@ namespace detail
231
231
return *this ;
232
232
}
233
233
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
-
249
234
DelegatePImpl& IRAM_ATTR operator =(std::nullptr_t )
250
235
{
251
236
if (FUNC == kind)
@@ -491,17 +476,6 @@ namespace detail
491
476
return *this ;
492
477
}
493
478
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
-
505
479
DelegatePImpl& IRAM_ATTR operator =(std::nullptr_t )
506
480
{
507
481
if (FPA == kind)
@@ -701,17 +675,6 @@ namespace detail
701
675
return *this ;
702
676
}
703
677
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
-
715
678
DelegatePImpl& IRAM_ATTR operator =(std::nullptr_t )
716
679
{
717
680
if (FUNC == kind)
@@ -852,12 +815,6 @@ namespace detail
852
815
return *this ;
853
816
}
854
817
855
- template <typename F> DelegatePImpl& operator =(F fn)
856
- {
857
- DelegatePImpl::fn = std::forward<F>(fn);
858
- return *this ;
859
- }
860
-
861
818
DelegatePImpl& IRAM_ATTR operator =(std::nullptr_t )
862
819
{
863
820
fn = nullptr ;
@@ -1075,21 +1032,6 @@ namespace detail
1075
1032
return *this ;
1076
1033
}
1077
1034
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
-
1093
1035
DelegateImpl& IRAM_ATTR operator =(std::nullptr_t )
1094
1036
{
1095
1037
if (FUNC == kind)
@@ -1334,17 +1276,6 @@ namespace detail
1334
1276
return *this ;
1335
1277
}
1336
1278
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
-
1348
1279
DelegateImpl& IRAM_ATTR operator =(std::nullptr_t )
1349
1280
{
1350
1281
if (FPA == kind)
@@ -1543,17 +1474,6 @@ namespace detail
1543
1474
return *this ;
1544
1475
}
1545
1476
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
-
1557
1477
DelegateImpl& IRAM_ATTR operator =(std::nullptr_t )
1558
1478
{
1559
1479
if (FUNC == kind)
@@ -1694,12 +1614,6 @@ namespace detail
1694
1614
return *this ;
1695
1615
}
1696
1616
1697
- template <typename F> DelegateImpl& operator =(F fn)
1698
- {
1699
- DelegateImpl::fn = std::forward<F>(fn);
1700
- return *this ;
1701
- }
1702
-
1703
1617
DelegateImpl& IRAM_ATTR operator =(std::nullptr_t )
1704
1618
{
1705
1619
fn = nullptr ;
0 commit comments