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 3754e96

Browse filesBrowse files
committed
Bug fix Delegate, custom type converter.
1 parent 70859c8 commit 3754e96
Copy full SHA for 3754e96

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎cores/esp8266/Delegate.h

Copy file name to clipboardExpand all lines: cores/esp8266/Delegate.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ namespace detail
342342
}
343343
else if (FPA == kind)
344344
{
345-
return std::bind(fnA, obj);
345+
return [this](P... args) { return fnA(obj, std::forward<P...>(args...)); };
346346
}
347347
else
348348
{
@@ -1217,7 +1217,7 @@ namespace detail
12171217
}
12181218
else if (FPA == kind)
12191219
{
1220-
return std::bind(fnA, obj);
1220+
return [this]() { return fnA(obj); };
12211221
}
12221222
else
12231223
{

0 commit comments

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